/* API Conecta Master Premium visual refresh - scoped to existing UI, no auth changes */
:root{--teal:#00b99e;--ink:#11283b;--muted:#71859a;--hair:#dce8f0;--surface:#fff;--mint:#e9fbf5}
body{background:#f2f6fa;color:var(--ink)}
.layout{grid-template-columns:265px minmax(0,1fr)}
aside{background:linear-gradient(180deg,#102a3d 0%,#153c4c 62%,#0b3541 100%);border:0;color:#e8f7f6;padding:28px 18px;box-shadow:12px 0 45px #102d4115}
.logo>span{background:linear-gradient(135deg,#08c5a8,#028a87);box-shadow:0 8px 22px #00c5a82b}
.logo strong{color:#fff;font-size:15px;letter-spacing:.04em}
.logo small,.nav-heading,.label{color:#9ab8c1}
.side-divider,.nav-group{border-color:#ffffff20}
nav button{color:#c2d5dc;border:1px solid transparent}
nav button:hover,nav button.active{background:#ffffff13;color:#fff;border-color:#ffffff20;box-shadow:inset 3px 0 #36ddbb}
.doc{color:#6de5c9;border-color:#ffffff20}
header{background:#ffffffea;backdrop-filter:blur(14px);border-color:#e0eaf0}
.chip,.status-pill{background:#ddf8ed;color:#087d67}
main{width:min(1500px,100%);padding:42px}
.login-grid{min-height:min(700px,calc(100vh - 190px));gap:7%;grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr)}
.welcome{position:relative;isolation:isolate;padding:55px 20px 55px 0}
.welcome:before{content:"";position:absolute;z-index:-1;inset:-35px 3% -25px -55px;border-radius:32px;background:radial-gradient(circle at 75% 25%,#b5f3e659,transparent 43%),linear-gradient(125deg,#edf9f9,#eaf2fb 68%,#f7fbff)}
.welcome h1{font-size:clamp(44px,5.2vw,76px);line-height:1.07;color:#102b40;letter-spacing:-.06em}
.welcome em{color:#009d8a}
.welcome>p{color:#536f84;font-size:16px;max-width:530px}
.eyebrow{color:#008f83;letter-spacing:.18em}
.badges span{border-color:#c9e7e2;background:#ffffffc9;color:#315f69;font-weight:700}
.auth-card{border:1px solid #dbe9ed;border-radius:25px;padding:42px;box-shadow:0 26px 80px #0e3b5330;background:#fff}
.auth-card h2{font-size:28px;color:#122e43}
.auth-card>p{color:#72879b}
.symbol{width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,#dafaf0,#ccefeb);color:#008e78}
input,textarea,select{background:#f8fbfd;border-color:#d8e6ed;border-radius:12px}
.primary{background:linear-gradient(105deg,#00a88e,#007f86);border-radius:12px;box-shadow:0 7px 18px #00a88e2b;font-size:13px}
.primary:hover{background:linear-gradient(105deg,#008c7a,#006d74)}
.panel,.stat,.identity{border:1px solid #e0eaf0;border-radius:19px;box-shadow:0 9px 32px #123a5510}
.page-top h1{font-size:clamp(30px,3vw,44px)}
.stat{padding:28px;background:linear-gradient(145deg,#fff,#f7fcfb)}
.stat:before{width:5px;background:linear-gradient(#00c6a3,#057f88)}
.stat b{font-size:36px}
.panel.highlight{background:linear-gradient(125deg,#0b5d69,#053b54);color:white}
.panel.highlight h2{color:white}
.item button,.secondary{border-radius:10px}
@media(max-width:1050px){.layout{grid-template-columns:220px minmax(0,1fr)}main{padding:28px}.auth-card{padding:28px}.welcome h1{font-size:48px}}
@media(max-width:720px){.layout{grid-template-columns:1fr}aside{padding:15px;height:auto;position:static}.login-grid{grid-template-columns:1fr;min-height:0;gap:16px}.welcome{padding:30px 18px}.welcome:before{inset:0;border-radius:18px}.welcome h1{font-size:40px}.auth-card{padding:24px}.nav-group{border:0}nav button{color:#e6f5f5}main{padding:20px 15px}}


/* API_CONECTA_MASTER_PREMIUM_V2_20261021 — layout visibly rebuilt; auth untouched */
:root{--premium-night:#061f2c;--premium-deep:#073a43;--premium-teal:#05b69a;--premium-cyan:#3fdac0;--premium-cream:#eaf7f3}
body{background:linear-gradient(145deg,#e9f0f4,#f6fafb 40%,#ebf8f4);color:#153445}
.layout{grid-template-columns:278px minmax(0,1fr)}
aside{background:linear-gradient(170deg,#031d2b 0%,#08303d 48%,#0a4351 100%);border-right:1px solid #134c56;padding:28px 18px;color:#def9f4;box-shadow:15px 0 55px rgba(3,28,43,.14)}
aside .logo{gap:13px;padding:4px 12px 0}
aside .logo>span{height:49px;width:49px;background:linear-gradient(145deg,#19e4b5,#028c91);color:#06323a;border-radius:16px;font-size:16px;box-shadow:0 10px 26px #04cfa65c}
aside .logo strong{color:#fff;font-weight:900;font-size:15px;letter-spacing:.075em}
aside .logo small{color:#8ddccc}
aside .side-divider{border-color:#ffffff18;margin:29px 0 19px}
aside .label,aside .nav-heading{color:#80acb7;letter-spacing:.16em}
nav button{padding:14px 16px;border-radius:12px;color:#b5d7dd;font-size:13px;font-weight:720;transition:background .2s,color .2s,transform .2s}
nav button:hover,nav button.active{color:#fff;background:linear-gradient(90deg,#135b64,#0b4857);border:1px solid #40bfad35;box-shadow:inset 4px 0 #34e2b7,0 8px 26px #00202a42}
nav button:hover{transform:translateX(2px)}
aside .nav-group{border-color:#ffffff18}
aside .doc{border-color:#ffffff20;color:#67e9c8}
.right{background:transparent;min-height:100vh}
header{background:rgba(255,255,255,.91);backdrop-filter:blur(16px);border-bottom:1px solid #dce8ec;box-shadow:0 3px 22px #0634430b;color:#456675;font-weight:650}
header .chip{background:#e3f9f1;color:#04765b;font-weight:850}
header #logout{background:#e4f2ef;color:#075d61;font-weight:750}
main{width:min(1530px,100%);padding:32px 38px 48px}
.page-top{margin:16px 0 28px}
#dashboard .page-top{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;padding:29px 36px;border-radius:24px;border:1px solid #075d6f;background:radial-gradient(circle at 83% 20%,#177c8680,transparent 41%),linear-gradient(115deg,#05273d,#0a5158 70%,#0d6062);box-shadow:0 19px 48px #073d5340}
#dashboard .page-top:after{content:"";position:absolute;z-index:-1;width:270px;height:270px;border:1px solid #ffffff1d;border-radius:50%;right:9%;top:-130px;box-shadow:0 0 0 36px #ffffff06,0 0 0 81px #ffffff06}
#dashboard .page-top .eyebrow{color:#70f1d2;letter-spacing:.2em}
#dashboard .page-top h1{color:#fff;font-size:clamp(30px,3vw,43px);margin:8px 0 8px;letter-spacing:-.05em}
#dashboard .page-top p{color:#b8e3e1;font-size:14px}
#dashboard .page-top .identity{background:#ffffff14;border:1px solid #ffffff30;border-radius:15px;padding:13px 18px;color:#fff;backdrop-filter:blur(8px)}
#dashboard .page-top .identity b{color:white;font-size:13px}
#dashboard .page-top .identity small{color:#9fe5d7}
#dashboard .page-top .avatar{background:#31dcb3;color:#063239;height:43px;width:43px;border-radius:13px}
.master-commandbar{display:none;position:relative;overflow:hidden;align-items:center;grid-template-columns:minmax(0,1fr) auto;gap:23px;background:#fff;border:1px solid #d6e8e9;border-left:5px solid #07b898;border-radius:22px;padding:22px 29px;box-shadow:0 12px 35px #00384b12}
body:has(nav button[data-page="clients"]:not([hidden])) #dashboard .master-commandbar{display:grid}
.master-commandbar-kicker{color:#007f7e;font-size:10px;font-weight:900;letter-spacing:.2em}
.master-commandbar h2{color:#073749;font-size:clamp(26px,3vw,40px);font-weight:850;line-height:1.12;letter-spacing:-.055em;margin:6px 0}
.master-commandbar h2 em{font-style:normal;color:#009e8b}
.master-commandbar p{font-size:13px;color:#597886;line-height:1.6;margin:0}
.master-commandbar-meta{display:grid;gap:10px;justify-items:end}
.master-commandbar-tag{font-size:10px;font-weight:900;letter-spacing:.12em;color:#06785e;background:#e2f9f0;border:1px solid #b5edda;border-radius:30px;padding:10px 14px}
.master-commandbar-seal{font-size:11px;letter-spacing:.08em;font-weight:800;color:#7c9ba5}
.master-commandbar-seal b{color:#086d72}
.overview-intro{display:flex;align-items:end;justify-content:space-between;gap:22px;margin:10px 0 22px}
.overview-intro .eyebrow{color:#008d82;font-size:10px}
.overview-intro h2{margin:5px 0 0;font-size:25px;color:#103d50}
.overview-intro p{margin:0 0 4px;font-size:12px;color:#7a94a0;max-width:335px}
#dashboard .statistics{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:25px}
#dashboard .stat{position:relative;isolation:isolate;min-height:145px;display:flex;flex-direction:column;justify-content:center;border:1px solid #d8e9e8;border-radius:19px;background:linear-gradient(138deg,#fff,#f5fcfa);box-shadow:0 13px 38px #0b445315;padding:24px 27px;transition:transform .2s,box-shadow .2s}
#dashboard .stat:hover{transform:translateY(-3px);box-shadow:0 18px 40px #06425425}
#dashboard .stat:before{width:5px;background:linear-gradient(180deg,#20d9b0,#028a98);border-radius:19px 0 0 19px}
#dashboard .stat:after{content:"";position:absolute;z-index:-1;right:-14px;top:-31px;width:125px;height:125px;border-radius:50%;border:22px solid #19cead0c}
#dashboard .stat span{font-size:12px;text-transform:uppercase;letter-spacing:.05em;font-weight:750;color:#577988}
#dashboard .stat b{font-size:clamp(31px,3.5vw,44px);margin-top:13px;color:#0a4150;letter-spacing:-.05em}
#dashboard .stat:nth-child(2),#dashboard .stat:nth-child(5){background:linear-gradient(145deg,#073c48,#0b6070);border-color:#177a80}
#dashboard .stat:nth-child(2) span,#dashboard .stat:nth-child(5) span{color:#a5e5dc}
#dashboard .stat:nth-child(2) b,#dashboard .stat:nth-child(5) b{color:#fff}
#dashboard .stat:nth-child(2):after,#dashboard .stat:nth-child(5):after{border-color:#34edc01b}
#dashboard .panel{background:#fff;border:1px solid #dbe9ea;border-radius:20px;box-shadow:0 12px 38px #103c5210;padding:31px}
#dashboard .panel h2{color:#103c4e}
#dashboard .panel.highlight{background:radial-gradient(circle at 80% 20%,#10aa9168,transparent 50%),linear-gradient(125deg,#05293a,#08616b);color:#fff;border-color:#0f6f76}
#dashboard .panel.highlight h2{color:#fff;font-size:clamp(24px,2.2vw,34px)}
#dashboard .panel.highlight span{color:#60f1ca}
#dashboard .panel.highlight a{background:#baf6e0;color:#064957}
#dashboard .notice{border-radius:14px}
#dashboard .section-heading h2{font-size:clamp(22px,2vw,29px);letter-spacing:-.05em}
#dashboard .status-pill{background:#daf9ee;color:#086c60;border:1px solid #b6ead8}
#dashboard .item{border-color:#e1edf0}
#dashboard .item button,#dashboard .secondary{background:#e8f8f3;border-color:#b9e7da;color:#056f64;font-weight:800}
#dashboard .primary{background:linear-gradient(110deg,#00b79e,#07778e);box-shadow:0 7px 22px #028a822b}
#dashboard input,#dashboard select,#dashboard textarea{background:#f8fbfd;border-color:#cfdfe5;min-height:42px}
.login-grid{min-height:min(750px,calc(100vh - 150px));grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr)}
#login-page .welcome{padding:48px 15px 55px 0}
#login-page .welcome:before{inset:-25px 3% -22px -33px;border:1px solid #d7ecea;background:radial-gradient(circle at 90% 5%,#a6f1d955,transparent 40%),linear-gradient(125deg,#e1f1f3,#f0f9f8 75%,#f6fbff)}
#login-page .welcome h1{color:#063447;font-size:clamp(45px,5.7vw,78px)}
#login-page .welcome em{color:#00a991}
#login-page .auth-card{border-radius:24px;border:1px solid #cce2e3;box-shadow:0 22px 70px #023d4a27;padding:38px}
#login-page .auth-card h2{font-size:28px}
#login-page .auth-card .symbol{height:55px;width:55px;border-radius:17px;background:#0b6873;color:#d5fff2;font-weight:900}
@media(max-width:1100px){.layout{grid-template-columns:230px minmax(0,1fr)}main{padding:28px}.master-commandbar{grid-template-columns:1fr}.master-commandbar-meta{justify-items:start;display:flex;flex-wrap:wrap;align-items:center}#dashboard .statistics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.layout{grid-template-columns:1fr}aside{position:static;height:auto;padding:14px 14px 10px;box-shadow:none}aside .logo{padding:2px 6px}aside .side-divider,.label,.doc{display:none}nav{display:flex;overflow-x:auto;gap:5px;padding-bottom:8px}nav button{white-space:nowrap;flex:0 0 auto;padding:10px 13px}main{padding:18px 13px 32px}header{height:62px;padding:0 16px}#dashboard .page-top{padding:21px;border-radius:19px;flex-wrap:wrap}#dashboard .page-top .identity{display:flex;max-width:100%}#dashboard .statistics{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}#dashboard .stat{min-height:118px;padding:16px}#dashboard .stat b{font-size:32px}.overview-intro{display:block}.overview-intro p{margin-top:10px}.master-commandbar{padding:19px;gap:12px}.master-commandbar h2{font-size:29px}#dashboard .panel{padding:19px}.login-grid{grid-template-columns:1fr;gap:18px;min-height:0}#login-page .welcome{padding:23px 13px}#login-page .welcome h1{font-size:42px}#login-page .auth-card{padding:23px}}
@media(max-width:420px){#dashboard .statistics{grid-template-columns:1fr}#dashboard .stat{min-height:110px}.master-commandbar-seal{display:none}#dashboard .page-top .identity{display:none}}

/* API_MASTER_MOBILE_LOGIN_FIX_20261021_V3
   Mobile-first auth visibility and multi-role navigation; no JS/auth/DB changes. */
@media (max-width: 980px){
  .layout{grid-template-columns:minmax(0,1fr)}
  .right,.right main,.right section,.right .panel,.right .auth-card{min-width:0;max-width:100%}
  aside{position:static!important;height:auto!important;overflow:visible!important;box-shadow:none}
  nav{display:flex;max-width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;gap:6px}
  nav button{white-space:nowrap;flex:0 0 auto;scroll-snap-align:start}
  #dashboard .page-top{min-width:0}
  #dashboard .panel{max-width:100%;overflow-wrap:anywhere}
}
@media (max-width: 720px){
  html,body{margin:0;min-width:0;width:100%;max-width:100%}
  body{font-size:14px}
  .layout{display:grid;grid-template-columns:minmax(0,1fr);min-width:0}
  aside{padding:12px 13px 10px;min-width:0}
  aside .logo{padding:0;gap:10px}
  aside .logo>span{width:40px;height:40px;min-width:40px;border-radius:12px}
  aside .logo strong{font-size:13px}
  aside .logo small{font-size:10px}
  .side-divider,.label,.doc{display:none!important}
  header{height:auto;min-height:52px;padding:8px 13px;gap:8px;max-width:100%}
  header>span{min-width:0;max-width:58%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  header>div{min-width:0;flex:0 1 auto;gap:7px}
  header .chip{padding:7px 9px;font-size:10px;white-space:nowrap}
  main{width:100%;min-width:0;margin:0;padding:12px 12px 28px}
  #login-page.login-grid:not([hidden]){display:flex!important;flex-direction:column;gap:13px;min-height:0;width:100%;align-items:stretch}
  #login-page .auth-card{order:-1;width:100%;max-width:540px;align-self:center;margin:0;display:flex;flex-direction:column;border-radius:20px;padding:22px 19px;box-shadow:0 12px 40px rgba(3,44,55,.17)}
  #login-page .auth-card h2{font-size:clamp(23px,6.4vw,30px);margin:12px 0 3px;line-height:1.1}
  #login-page .auth-card>p{font-size:13px;line-height:1.5;margin:6px 0 16px}
  #login-page .auth-card .symbol{width:43px;height:43px;border-radius:13px}
  #login-page .auth-card label{font-size:13px}
  #login-page .auth-card input{display:block;width:100%;min-height:48px;font-size:16px!important;padding:12px 13px;margin:6px 0 14px}
  #login-page .auth-card button[type=submit]{display:block;width:100%;min-height:50px;margin:10px 0;font-size:14px}
  #login-page .auth-card .error{white-space:normal;overflow-wrap:anywhere;min-height:19px}
  #login-page .auth-card small{margin-top:9px;padding-top:12px;line-height:1.4}
  #login-page .welcome{order:2;align-self:center;width:100%;max-width:540px;margin:0;padding:19px 16px 20px;border-radius:16px;background:linear-gradient(130deg,#e1f7f0,#f1fafb)}
  #login-page .welcome:before{display:none}
  #login-page .welcome h1{font-size:clamp(26px,7vw,35px);margin:8px 0;line-height:1.08;letter-spacing:-.045em}
  #login-page .welcome>p{font-size:12px;line-height:1.5;margin-bottom:0}
  #login-page .welcome .eyebrow{font-size:9px;letter-spacing:.11em}
  #login-page .badges{margin-top:14px;gap:6px}
  #login-page .badges span{font-size:10px;padding:7px 9px}
  /* Keep pre-auth sidebar buttons out of the way until a valid session exists. */
  body:has(#dashboard[hidden]) aside nav{display:none!important}
  body:has(#dashboard[hidden]) aside{padding-bottom:12px}
  #dashboard{width:100%;min-width:0}
  #dashboard .master-commandbar{display:block;width:100%;padding:17px}
  #dashboard .master-commandbar-meta{margin-top:11px}
  #dashboard .master-commandbar h2{font-size:26px}
  #dashboard .page-top{min-width:0;padding:17px 16px;display:flex;flex-wrap:wrap}
  #dashboard .page-top h1{font-size:clamp(25px,7vw,32px)}
  #dashboard .page-top .identity{display:flex;max-width:100%;min-width:0}
  #dashboard .page-top .identity b{max-width:185px}
  #dashboard .statistics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  #dashboard .stat{min-width:0;min-height:109px;padding:14px 13px;border-radius:15px}
  #dashboard .stat span{font-size:10px;letter-spacing:0;line-height:1.35}
  #dashboard .stat b{font-size:clamp(24px,6vw,32px)}
  #dashboard .columns{display:grid;grid-template-columns:minmax(0,1fr);gap:15px}
  #dashboard .panel{padding:17px;min-width:0;border-radius:17px}
  #dashboard .panel h2{font-size:20px}
  #dashboard .page-top .identity{white-space:normal}
  #dashboard .item{align-items:flex-start;min-width:0}
  #dashboard .item button{min-height:42px}
  #dashboard .form-grid,#dashboard .crm-form{grid-template-columns:minmax(0,1fr)}
  #dashboard .whole{grid-column:auto}
  #dashboard .flex-form{display:flex;flex-direction:column;align-items:stretch;gap:8px}
  #dashboard .flex-form label{flex:1 1 auto;min-width:0;width:100%}
  #dashboard button,#dashboard .primary,#dashboard .secondary{max-width:100%}
  .crm-board,.crm-table-wrap,.ops-toolbar,.code-panel{max-width:100%;min-width:0;overflow-x:auto}
  footer{padding:14px 10px;font-size:10px}
}
@media (max-width: 460px){
  #dashboard .statistics{grid-template-columns:minmax(0,1fr)}
  #dashboard .stat{min-height:95px}
  #dashboard .page-top .identity{display:flex}
  #login-page .auth-card{padding:18px 15px}
}


/* API_CONECTA_OPERATIONS_PARITY_R1_20261021
   Scoped Master UI enhancement; no backend, account, or API contract changes. */
#nav[hidden]{display:none!important}
body:not(.session-ready) aside .doc{display:none}
body:not(.session-ready) aside{align-self:stretch}
body:not(.session-ready) .layout{grid-template-columns:200px minmax(0,1fr)}
body:not(.session-ready) .right{min-width:0}
body.session-ready #nav{display:block}
.ops-view{width:100%;min-width:0;padding:0 0 35px}
.ops-view[hidden]{display:none!important}
.ops-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;overflow:hidden;position:relative;background:radial-gradient(circle at 86% 5%,#17b8a04d,transparent 40%),linear-gradient(120deg,#06263a,#0a525d 72%,#0b6b70);border:1px solid #176b79;border-radius:22px;padding:32px 34px;color:#f4fffe;box-shadow:0 17px 36px rgba(0,57,77,.17)}
.ops-hero:before{position:absolute;content:"";border:1px solid #ffffff1d;border-radius:50%;height:350px;width:350px;right:80px;top:-225px;pointer-events:none;box-shadow:0 0 0 55px #ffffff09,0 0 0 110px #ffffff04}
.ops-hero>*{position:relative;z-index:1}
.ops-eyebrow{font-size:10px;font-weight:900;letter-spacing:.19em;text-transform:uppercase;color:#109c8d}
.ops-hero .ops-eyebrow{color:#6df4d1}
.ops-hero h2{font-size:clamp(28px,2.6vw,43px);line-height:1.1;letter-spacing:-.045em;color:#fff;margin:8px 0}
.ops-hero p{font-size:13px;line-height:1.65;color:#c3e6e4;margin:0;max-width:730px}
.ops-button{border:1px solid #a9dad8;background:#e6f7f2;color:#065c60;padding:10px 15px;min-height:44px;border-radius:12px;font:750 13px/1.2 inherit;cursor:pointer;display:inline-flex;gap:10px;align-items:center;justify-content:center;white-space:normal;text-align:center;transition:transform .18s,background .18s,border-color .18s}
.ops-button:hover{background:#cdf5e8;border-color:#24bbac;transform:translateY(-1px)}
.ops-button:focus-visible{outline:3px solid #30cba9;outline-offset:3px}
.ops-button-light{border:1px solid #b6f5e34d;background:#dbfff5;color:#07505a;flex-shrink:0}
.ops-button-light:hover{background:#ffffff}
.ops-live-status{padding:13px 17px;margin:19px 0;background:#e8f4f7;border:1px solid #d0e3e7;color:#244c5c;border-radius:12px;font-size:12px;font-weight:650;line-height:1.5}
.ops-live-status.ops-online{background:#e2f8ec;border-color:#a9e7c9;color:#067360}
.ops-live-status.ops-offline{background:#fff2e4;border-color:#f1d4aa;color:#8f500d}
.ops-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:19px 0 22px}
.ops-kpi{min-height:136px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;padding:20px;background:linear-gradient(145deg,#fff,#f7fbfc);border:1px solid #d8e7e9;border-radius:17px;box-shadow:0 11px 30px #003e5110}
.ops-kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(#1ce4b5,#0b7e8b)}
.ops-kpi span{font-size:11px;font-weight:720;line-height:1.45;letter-spacing:.015em;color:#567783}
.ops-kpi strong{font-size:clamp(28px,3vw,39px);font-weight:900;color:#063748;letter-spacing:-.05em;line-height:1.1;margin-top:20px;overflow-wrap:anywhere}
.ops-kpi:nth-child(2),.ops-kpi:nth-child(5){background:linear-gradient(135deg,#073e4f,#0d6570);border-color:#248c91}
.ops-kpi:nth-child(2) span,.ops-kpi:nth-child(5) span{color:#c5eee7}
.ops-kpi:nth-child(2) strong,.ops-kpi:nth-child(5) strong{color:white}
.ops-kpi.ops-kpi-attention{border-color:#f1d4af;background:#fffaf3}
.ops-kpi.ops-kpi-attention:before{background:#f59a24}
.ops-duo{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:19px;align-items:start}
.ops-panel{min-width:0;padding:25px;background:#fff;border:1px solid #dce9eb;box-shadow:0 10px 32px #003e5111;border-radius:19px}
.ops-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.ops-panel h3{font-size:21px;color:#0c3b4b;line-height:1.24;letter-spacing:-.035em;margin:5px 0}
.ops-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ops-action-grid .ops-button{width:100%;min-height:54px;justify-content:space-between;text-align:left;background:#f0faf6}
.ops-action-grid .ops-button:hover{background:#d3f4e9}
.ops-list{display:grid;gap:10px;min-width:0}
.ops-record{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0;border:1px solid #e0ebed;background:#fbfdfd;border-radius:12px;padding:15px 16px}
.ops-record-copy{min-width:0;display:grid;gap:5px;overflow-wrap:anywhere}
.ops-record-copy strong{font-size:13px;line-height:1.4;color:#144656}
.ops-record-copy span{font-size:11px;line-height:1.55;color:#687f8b}
.ops-pill{align-self:flex-start;display:inline-flex;gap:4px;align-items:center;border-radius:99px;padding:7px 10px;font-size:10px;font-weight:850;line-height:1.25;white-space:nowrap;background:#eef3f6;color:#587384;border:1px solid #dce9ed}
.ops-pill-success{background:#e5f9ee;color:#09745b;border-color:#c8efdb}
.ops-pill-warning{background:#fff3df;color:#935909;border-color:#f5d9aa}
.ops-footnote{font-size:11px;line-height:1.6;color:#6b8490;margin:17px 0 0}
.ops-empty{background:#f6fafc;border:1px dashed #cbdfe4;padding:22px;border-radius:13px;color:#67808b;font-size:13px;line-height:1.5;margin:0}
.ops-steps{display:grid;gap:13px}
.ops-step{min-width:0;display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:15px;align-items:center;background:#fff;border:1px solid #dbeaec;box-shadow:0 7px 24px #043b4b0c;border-radius:15px;padding:17px 20px}
.ops-step-icon{width:42px;height:42px;border-radius:13px;background:#f4ebd7;color:#9a5d13;display:grid;place-items:center;font-weight:900;font-size:20px}
.ops-step-icon.ops-step-done{background:#def8e9;color:#058365}
.ops-step-copy{min-width:0}
.ops-step-heading{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.ops-step-heading strong{font-size:14px;color:#114758}
.ops-step-copy p{font-size:12px;line-height:1.5;color:#6b8490;margin:6px 0 0}
.ops-search-label{font-size:12px;color:#4c6e7d;font-weight:750;display:block;margin:0 0 8px}
.ops-search{display:block;max-width:650px;width:100%;min-height:47px;border:1px solid #cfdee4;border-radius:10px;background:#f7fafb;color:#123a4d;padding:11px 13px;font:inherit;font-size:14px}
.ops-search:focus{border-color:#05b9a0;outline:3px solid #14c5a331}
.ops-view .ops-panel>.ops-list{margin-top:17px}
@media(max-width:1250px){.ops-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-duo{grid-template-columns:minmax(0,1fr)}}
@media(max-width:980px){body:not(.session-ready) .layout{grid-template-columns:minmax(0,1fr)}body:not(.session-ready) aside{min-height:65px;padding:10px 17px;box-shadow:none}body:not(.session-ready) aside .logo{padding:0}body:not(.session-ready) aside .side-divider{display:none}}
@media(max-width:720px){body.session-ready #nav{display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch}body:not(.session-ready) #nav{display:none!important}.ops-view{padding-bottom:16px}.ops-hero{padding:20px 17px;border-radius:17px;display:block}.ops-hero:before{display:none}.ops-hero h2{font-size:29px}.ops-hero p{font-size:12px}.ops-hero .ops-button{width:100%;margin-top:18px}.ops-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ops-kpi{min-height:114px;padding:15px 14px;border-radius:14px}.ops-kpi span{font-size:10px}.ops-kpi strong{font-size:27px;margin-top:10px}.ops-panel{padding:17px 14px;border-radius:16px}.ops-panel h3{font-size:19px}.ops-action-grid{grid-template-columns:minmax(0,1fr)}.ops-record{align-items:flex-start;gap:9px;flex-wrap:wrap;padding:13px 12px}.ops-pill{padding:6px 8px}.ops-step{grid-template-columns:33px minmax(0,1fr);gap:11px;padding:15px 12px}.ops-step-icon{width:33px;height:33px;border-radius:10px;font-size:16px}.ops-step>.ops-button{grid-column:2;justify-self:start;min-height:39px}.ops-step-heading strong{font-size:13px}.ops-step-copy p{font-size:11px}.ops-live-status{font-size:11px}}
@media(max-width:380px){.ops-kpis{grid-template-columns:minmax(0,1fr)}.ops-kpi{min-height:90px}.ops-step-heading{display:grid;justify-items:start}}

/* API_CONECTA_ENTERPRISE_OPERATIONS_R2_20261021
   Operational first, no hidden marketing-only menu items. Mobile master/client navigation. */
:root{--r2-midnight:#092739;--r2-panel:#ffffff;--r2-fog:#f0f5f8;--r2-mint:#07b999;--r2-ice:#d9f5ea;--r2-line:#d9e6eb;--r2-text:#17384a;--r2-muted:#637e8d}
body.session-ready{background:#f1f5f8}
body.session-ready .layout{grid-template-columns:262px minmax(0,1fr)}
body.session-ready aside{background:linear-gradient(180deg,#0b2637,#103449 60%,#0b2c3c);box-shadow:12px 0 26px #092f4515;border-right:1px solid #145066;scrollbar-width:thin;scrollbar-color:#4e7487 #103143;padding:22px 11px}
body.session-ready .logo{padding:4px 12px 9px;align-items:center}
body.session-ready aside .side-divider{margin:14px 4px}
body.session-ready aside .label{display:none}
body.session-ready #nav{max-width:100%;min-width:0;overflow:visible}
body.session-ready #nav[hidden]{display:none!important}
body.session-ready #nav .nav-group{border:0!important;margin:14px 0 9px;padding:8px 0 0;min-width:0}
body.session-ready #nav .nav-group[hidden]{display:none!important}
body.session-ready #nav .nav-heading{display:block;font-size:9px;font-weight:900;letter-spacing:.15em;padding:0 13px 8px;color:#8cb3c1;white-space:normal}
body.session-ready #nav button{font-size:12px;font-weight:710;min-height:42px;margin:1px 0 3px;padding:10px 13px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;border-radius:10px;color:#c7dce2;box-shadow:none}
body.session-ready #nav button:hover,body.session-ready #nav button.active{background:#1a5362;color:#f5fffc;border-color:#ffffff1b;box-shadow:inset 3px 0 #45dfb9}
body.session-ready #nav button[hidden]{display:none!important}
body.session-ready header{background:#fff;padding:0 30px;min-height:68px;border-bottom:1px solid #dde9ee;box-shadow:0 3px 12px #20435608}
body.session-ready header .chip{background:#dff7ec;color:#097d65;font-size:11px}
body.session-ready header .chip::before{content:"●";font-size:8px;margin-right:7px}
body.session-ready main{width:min(1640px,100%);min-width:0;padding:30px 28px 42px}
body.session-ready .ops-hero{background:radial-gradient(circle at 88% 7%,#27d7ac5a,transparent 38%),linear-gradient(120deg,#092c3e,#0b5657 64%,#117e72)}
body.session-ready .ops-kpi{min-height:122px;border-radius:15px;padding:19px}
body.session-ready .ops-kpi:nth-child(2),body.session-ready .ops-kpi:nth-child(5){background:linear-gradient(135deg,#0a4455,#0d7b75)}
body.session-ready .ops-record{background:#f9fcfd}
body.session-ready .ops-action-grid .ops-button{font-size:12px;min-height:51px}
.app-header-left{display:flex;align-items:center;min-width:0;gap:15px}
.app-header-left>span{max-width:70vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sidebar-toggle{display:none;align-items:center;gap:6px;border-radius:10px;border:1px solid #bddbd5;padding:9px 12px;background:#e7f7f3;color:#006e68;font:800 12px/1.4 inherit;cursor:pointer}
.enterprise-view{display:block}
.enterprise-view[hidden]{display:none!important}
.ep-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0}
.ep-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ep-space{margin-top:20px}
.ep-helper{color:var(--r2-muted);font-size:12px;line-height:1.6;margin:8px 0 13px}
.ep-form{display:grid;grid-template-columns:minmax(0,1fr);gap:13px;margin-top:14px}
.ep-form label{display:grid;gap:6px;color:#2d5462;font-size:12px;font-weight:750;line-height:1.4;min-width:0}
.ep-form input,.ep-form textarea,.ep-form select,.ep-inline-form input,.ep-inline-form textarea{
 width:100%;max-width:100%;min-width:0;min-height:44px;box-sizing:border-box;
 border:1px solid #ccdee5;border-radius:10px;padding:11px 12px;background:#f8fbfc;
 color:#1c4350;font:500 14px/1.4 inherit
}
.ep-form textarea,.ep-inline-form textarea{min-height:74px;resize:vertical}
.ep-form input:focus,.ep-form select:focus,.ep-form textarea:focus,.ep-inline-form input:focus{
 border-color:#08a88f;outline:3px solid #16c7a632
}
.ep-form .primary,.ep-inline-form .primary{min-height:46px;justify-self:start;padding:11px 18px;font-weight:800}
.ep-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ep-horizontal{grid-template-columns:1fr 1.4fr .75fr .8fr auto;align-items:end;gap:12px}
.ep-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ep-heading h3{margin:0 0 7px;color:#163e4e;letter-spacing:-.035em}
.ep-heading>span{font-size:12px;font-weight:750;color:#587b88}
.ep-card-grid h4{font-size:17px;color:#093747;letter-spacing:-.025em;margin:12px 0 6px}
.ep-card-grid .ep-product-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:19px;border:1px solid #dce8e9;background:linear-gradient(140deg,#ffffff,#f8fefd);border-radius:16px;box-shadow:0 8px 26px #183d4d0c}
.ep-product-card p{color:#5c7a88;font-size:12px;line-height:1.55}
.ep-product-price{font-size:23px;color:#064f56;font-weight:900;letter-spacing:-.04em;margin-top:auto}
.ep-product-card .ep-helper{margin-top:10px}
.ep-pill{display:inline-flex;align-items:center;justify-content:center;gap:4px;background:#eef4f7;color:#597787;border:1px solid #d7e5eb;border-radius:99px;padding:6px 10px;font-size:10px;font-weight:850;line-height:1.2;white-space:nowrap}
.ep-pill-success{background:#e2f8ec;color:#067554;border-color:#bfead5}
.ep-pill-warning{background:#fff4e2;color:#8b5a17;border-color:#eedbb4}
.ep-record{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:13px;min-width:0;
  background:linear-gradient(110deg,#fff,#fbfdfd);border:1px solid #deeaee;border-radius:13px;padding:15px 17px}
.ep-record+.ep-record{margin-top:9px}
.ep-record-copy{min-width:0;flex:1 1 280px;overflow-wrap:anywhere}
.ep-record-title{font-size:13px;color:#103c4c;line-height:1.35}
.ep-record-detail{font-size:12px;line-height:1.5;color:#65828c;margin:7px 0 0;overflow-wrap:anywhere}
.ep-record>.ep-helper{flex-basis:100%;margin:0}
.ep-record>.ep-action{margin-top:4px}
.ep-action-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;margin-top:10px}
.ep-action{border:1px solid #c2e7dd;border-radius:10px;background:#e1f8ef;color:#086b63;font-size:12px;font-weight:750;min-height:40px;padding:9px 13px;cursor:pointer}
.ep-action:hover{border-color:#09b499;background:#d0f3e4}
.ep-action-muted{background:#f2f6f7;color:#506f7c;border-color:#d4e3e7}
.ep-action:disabled{opacity:.5;cursor:not-allowed}
.ep-action-row select{min-width:130px;max-width:250px;min-height:40px;padding:8px 12px;border:1px solid #cbdee4;border-radius:9px;color:#2a5260;background:white;font-size:12px}
.ep-inline-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:end;width:100%;border-top:1px solid #dde6e8;padding-top:16px;margin-top:15px}
.ep-inline-form label{font-size:12px;color:#587783;font-weight:750;align-self:end}
.ep-inline-form button{grid-column:1/-1;justify-self:start}
.ep-metrics{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0}
.ep-ticket-card{margin-bottom:11px}
.ep-ticket-card .ep-ticket-body{font-size:13px;color:#355765;line-height:1.65}
.ep-replies{display:grid;gap:10px;margin-top:18px;padding-top:17px;border-top:1px solid #dfe9ed}
.ep-replies h4{margin:0;color:#10434c}
.ep-replies .ep-record{padding:12px 15px;background:#f6fafb}
.ep-replies form{max-width:650px}
.ep-agent-details{flex-basis:100%;width:100%;border-top:1px dashed #d6e4e9;padding-top:10px;margin-top:7px}
.ep-agent-details .ep-helper{margin:5px 0}
.ep-preview-result{border:1px solid #bde4de;background:#f0fcf7;border-radius:12px;padding:16px;margin-top:18px;color:#194f51;min-height:76px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.ep-preview-result p{margin:10px 0}
.ep-empty{border:1px dashed #c8dfe4;background:#f8fcfd;border-radius:12px;padding:25px;color:#6d838e;font-size:13px;text-align:center;line-height:1.5}
.ep-master-only[hidden]{display:none!important}
body.client-session .ep-master-only{display:none!important}
.ep-grid .ops-panel,.ep-card-grid .ep-product-card{min-width:0}
.enterprise-view .ops-panel h3{margin:4px 0 12px}
.enterprise-view .ops-panel .ep-heading h3{margin:0}
@media(max-width:1280px){.ep-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ep-horizontal{grid-template-columns:repeat(2,minmax(0,1fr))}.ep-horizontal button{grid-column:auto}}
@media(max-width:950px){body.session-ready .layout{grid-template-columns:210px minmax(0,1fr)}body.session-ready main{padding:25px 20px}.ep-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){
 body.session-ready .layout{grid-template-columns:minmax(0,1fr)}
 body.session-ready aside{position:static!important;height:auto!important;overflow:visible!important;padding:11px 12px 8px;box-shadow:none}
 body.session-ready aside .logo{padding:0 0 8px;justify-content:flex-start}
 body.session-ready aside .side-divider{display:none}
 body.session-ready #nav:not(.mobile-open){display:none!important}
 body.session-ready #nav.mobile-open{display:flex!important;flex-direction:column;overflow-y:auto!important;overflow-x:hidden!important;max-height:min(65vh,560px);padding:8px 0 16px;gap:0}
 body.session-ready #nav.mobile-open .nav-group{display:block;flex:none;width:100%;margin:7px 0 0;padding:6px 0}
 body.session-ready #nav.mobile-open .nav-group[hidden]{display:none!important}
 body.session-ready #nav button{display:block;width:100%;text-align:left;white-space:normal!important;min-height:42px;margin:3px 0}
 body.session-ready #nav button[hidden]{display:none!important}
 body.session-ready header{height:auto;min-height:54px;padding:9px 13px;gap:7px;align-items:center}
 .app-header-left{flex:1;gap:8px;min-width:0}
 .app-header-left>span{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
 body.session-ready header .chip{font-size:9px;padding:7px 8px}
 #sidebar-toggle{display:inline-flex;flex:none;font-size:11px;padding:9px 10px;min-height:40px}
 body.session-ready main{padding:14px 12px 27px}
 .ep-grid{gap:11px;margin:13px 0}
 .ep-card-grid{grid-template-columns:minmax(0,1fr)}
 .ep-two,.ep-horizontal{grid-template-columns:minmax(0,1fr)}
 .ep-horizontal button{grid-column:auto}
 .ep-action-row{flex-direction:column;align-items:stretch}
 .ep-action-row>.ep-action,.ep-action-row select{max-width:100%;width:100%}
 .ep-inline-form{grid-template-columns:minmax(0,1fr)}
 .ep-record{padding:12px 13px}
 .ep-record-copy{flex-basis:100%}
 .ep-record>.ep-pill{align-self:flex-start}
 .enterprise-view .ops-panel{padding:18px 14px}
 .enterprise-view .ops-hero{border-radius:15px}
 .enterprise-view .ops-hero h2{font-size:27px}
 .enterprise-view .ops-hero p{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.ep-action,.ops-button,nav button{transition:none!important}}

/* API_CONECTA_ENTERPRISE_R2_VISUAL_CLEANUP_20261021
   Show a single purpose-built Master heading and bring live KPI cards above
   the fold; preserve client account heading and password-change form. */
body.master-session #dashboard>.master-commandbar{display:none!important}
body.master-session #dashboard>.page-top{display:none!important}
body.master-session main{padding-top:16px}
body.master-session [data-panel="command"]>.ops-hero{padding:26px 30px;border-radius:18px}
body.master-session [data-panel="command"] .ops-hero h2{font-size:clamp(29px,2.7vw,41px);margin:4px 0}
body.master-session [data-panel="command"] .ops-hero p{max-width:670px}
body.master-session [data-panel="command"] .ops-live-status{margin:12px 0}
body.master-session [data-panel="command"] .ops-kpis{margin:13px 0 16px}
body.master-session [data-panel="command"] .ops-kpi{min-height:113px;padding:16px 17px}
body.master-session [data-panel="command"] .ops-kpi strong{margin-top:13px;font-size:clamp(27px,2.6vw,35px)}
body.master-session #notice:not([hidden]){margin:0 0 14px}
body.master-session #password-required:not([hidden]){margin:0 0 14px}
@media(max-width:720px){
 body.master-session main{padding-top:12px}
 body.master-session [data-panel="command"]>.ops-hero{padding:18px 15px;border-radius:15px}
 body.master-session [data-panel="command"] .ops-hero h2{font-size:29px}
 body.master-session [data-panel="command"] .ops-live-status{margin:10px 0}
 body.master-session [data-panel="command"] .ops-kpis{margin:11px 0 14px}
 body.master-session [data-panel="command"] .ops-kpi{min-height:94px;padding:13px}
 body.master-session [data-panel="command"] .ops-kpi strong{font-size:27px}
}

/* API_CONECTA_MOBILE_LOGIN_SEPARATION_20261021
   [hidden] is the authoritative auth-state signal from signedIn/signOut.
   Never let a responsive display:flex!important override authenticated state. */
#login-page[hidden],
body.session-ready #login-page,
#dashboard[hidden] {
  display: none !important;
}
