/* Compact premium EA LAB product tabs */
.ea-product-selector{margin-top:4px;margin-bottom:14px}.ea-product-selector-head{align-items:center;gap:18px;margin-bottom:10px}.ea-product-selector-head .eyebrow{margin-bottom:3px;font-size:10px}.ea-product-selector-head h2{font-size:clamp(22px,2.25vw,30px);line-height:1.15}.ea-product-selector-head>p{max-width:430px;font-size:12px;line-height:1.55}.ea-product-tabs{position:relative;isolation:isolate;gap:6px;padding:5px;border-radius:16px;background:linear-gradient(135deg,rgba(10,29,49,.94),rgba(4,14,27,.88));box-shadow:0 14px 36px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.025)}.ea-product-tab{isolation:isolate;overflow:hidden;justify-content:center;min-height:58px;padding:9px 11px;border-radius:12px;text-align:center;transform:translateZ(0);transition:color .22s ease,background .22s ease,border-color .22s ease,box-shadow .22s ease,transform .22s cubic-bezier(.2,.8,.2,1)}.ea-product-tab b{position:relative;z-index:2;font-size:12px;line-height:1.35}.ea-product-tab:hover{transform:translateY(-2px);background:rgba(255,255,255,.055);box-shadow:0 8px 20px rgba(0,0,0,.14)}.ea-product-tab.active{border-color:rgba(255,225,148,.74);background:linear-gradient(120deg,#f8cf70 0%,#e2ad3d 54%,#f7d57f 100%);box-shadow:0 8px 22px rgba(200,149,46,.25),inset 0 1px rgba(255,255,255,.5);transform:translateY(-1px)}.ea-product-tab.active::before{content:"";position:absolute;z-index:1;inset:-80% -45%;background:linear-gradient(100deg,transparent 38%,rgba(255,255,255,.5) 49%,transparent 61%);transform:translateX(-58%) rotate(4deg);animation:eaTabSheen 3.8s ease-in-out infinite}.ea-product-tab.active::after{content:"";position:absolute;left:20%;right:20%;bottom:0;height:2px;border-radius:99px;background:#fff0bd;box-shadow:0 0 14px 3px rgba(255,224,132,.65);animation:eaTabPulse 2.2s ease-in-out infinite}.ea-product-summary{gap:12px;margin-top:7px;padding:11px 14px;border-radius:14px;background:linear-gradient(105deg,rgba(242,199,106,.09),rgba(11,29,49,.82) 58%,rgba(19,42,65,.74));box-shadow:inset 0 1px rgba(255,255,255,.025)}.ea-product-summary-icon{width:36px;height:36px;border-radius:11px;font-size:15px;box-shadow:0 8px 20px rgba(200,149,46,.2)}.ea-product-summary h3{font-size:15px;line-height:1.35}.ea-product-summary p{font-size:12px;line-height:1.55}.ea-product-live{font-size:10px}.ea-product-summary.switching{animation:eaProductReveal .38s cubic-bezier(.2,.8,.2,1)}
@keyframes eaTabSheen{0%,56%{transform:translateX(-58%) rotate(4deg);opacity:0}64%{opacity:.85}82%,100%{transform:translateX(58%) rotate(4deg);opacity:0}}@keyframes eaTabPulse{0%,100%{opacity:.5;transform:scaleX(.72)}50%{opacity:1;transform:scaleX(1)}}@keyframes eaProductReveal{0%{opacity:.25;transform:translateY(7px) scale(.992);filter:blur(3px)}100%{opacity:1;transform:none;filter:none}}
html[data-theme="light"] .ea-product-tabs{background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(242,246,250,.9));box-shadow:0 12px 30px rgba(8,24,42,.08),inset 0 1px #fff}html[data-theme="light"] .ea-product-summary{background:linear-gradient(105deg,rgba(242,199,106,.18),rgba(255,255,255,.94) 62%,rgba(241,246,250,.92))}@media(max-width:960px){.ea-product-selector-head{gap:6px}.ea-product-tab{min-height:54px}.ea-product-tab:last-child{grid-column:1/-1}}@media(max-width:600px){.ea-product-selector{margin-top:0}.ea-product-selector-head{margin-bottom:8px}.ea-product-selector-head h2{font-size:23px}.ea-product-tabs{gap:5px;padding:5px}.ea-product-tab{flex-basis:68%;min-height:54px}.ea-product-summary{padding:10px 12px}.ea-product-live{white-space:normal}}@media(prefers-reduced-motion:reduce){.ea-product-tab,.ea-product-summary{transition:none!important}.ea-product-tab.active::before,.ea-product-tab.active::after,.ea-product-summary.switching{animation:none!important}}

/* =========================================================
   VELAEA EA LAB — RISK POLICY BUILDER V2
   ========================================================= */

.ea-risk-policy-v2{
  margin-top:16px;
  padding:18px;
  border:1px solid rgba(114,132,255,.32);
  border-radius:20px;
  background:
    radial-gradient(circle at 100% 0%,rgba(109,72,255,.10),transparent 35%),
    linear-gradient(180deg,rgba(11,32,57,.96),rgba(5,21,39,.98));
}

.erp-head,
.erp-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.erp-head{
  margin-bottom:14px;
}

.erp-kicker{
  display:block;
  margin-bottom:4px;
  color:#f2c95c;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
}

.erp-head h3,
.erp-section h4{
  margin:0;
}

.erp-head p,
.erp-title-row small{
  color:#94a8bd;
  line-height:1.55;
}

.erp-badge{
  flex:none;
  padding:7px 10px;
  border:1px solid rgba(62,211,151,.35);
  border-radius:999px;
  color:#6ee7b7;
  background:rgba(16,185,129,.08);
  font-size:11px;
  font-weight:700;
}

.erp-section{
  margin-top:12px;
  padding:15px;
  border:1px solid rgba(87,119,160,.25);
  border-radius:16px;
  background:rgba(4,20,37,.58);
}

.erp-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}

.erp-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.erp-grid label>span{
  font-size:12px;
  font-weight:700;
  color:#d9e7f5;
}

.erp-grid input,
.erp-grid select,
.erp-section textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(79,112,151,.46);
  border-radius:11px;
  background:#06182b;
  color:#f5f8fc;
  padding:11px 12px;
  outline:none;
}

.erp-grid input:focus,
.erp-grid select:focus,
.erp-section textarea:focus{
  border-color:#d4ad45;
  box-shadow:0 0 0 3px rgba(212,173,69,.10);
}

.erp-toggle{
  position:relative;
  width:42px;
  height:24px;
  flex:none;
}

.erp-toggle input{
  position:absolute;
  opacity:0;
}

.erp-toggle span{
  position:absolute;
  inset:0;
  border-radius:999px;
  background:#24374b;
  cursor:pointer;
  transition:.2s ease;
}

.erp-toggle span:before{
  content:"";
  position:absolute;
  width:18px;
  height:18px;
  left:3px;
  top:3px;
  border-radius:50%;
  background:#fff;
  transition:.2s ease;
}

.erp-toggle input:checked + span{
  background:#7357e8;
}

.erp-toggle input:checked + span:before{
  transform:translateX(18px);
}

.erp-dependent.is-disabled{
  opacity:.35;
  pointer-events:none;
  filter:grayscale(.35);
}

.erp-modules{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px;
  margin-top:12px;
}

.erp-module{
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:8px;
  align-items:center;
  padding:11px;
  border:1px solid rgba(86,118,156,.35);
  border-radius:13px;
  background:#071c31;
  cursor:pointer;
}

.erp-module input{
  grid-row:1 / span 2;
}

.erp-module small{
  color:#8ea3b9;
}

.erp-conflicts{
  margin-top:14px;
  padding:14px;
  border:1px solid rgba(245,158,11,.38);
  border-radius:15px;
  background:rgba(245,158,11,.06);
}

.erp-conflict-head{
  display:flex;
  justify-content:space-between;
  margin-bottom:9px;
}

.erp-conflict{
  padding:10px 12px;
  border-radius:11px;
  margin-top:7px;
}

.erp-conflict.warning{
  background:rgba(245,158,11,.09);
  border:1px solid rgba(245,158,11,.22);
}

.erp-conflict.error{
  background:rgba(239,68,68,.09);
  border:1px solid rgba(239,68,68,.25);
}

.erp-conflict p{
  margin:4px 0 0;
  color:#b7c7d8;
  line-height:1.5;
}

.erp-foot{
  margin-top:12px;
  padding:10px 12px;
  border-radius:11px;
  background:rgba(42,68,97,.28);
  color:#95aabd;
  font-size:11px;
}

.erp-foot b{
  color:#dce8f4;
}

@media(max-width:700px){
  .ea-risk-policy-v2{
    padding:12px;
  }

  .erp-grid,
  .erp-modules{
    grid-template-columns:1fr;
  }

  .erp-head{
    flex-direction:column;
  }
}


/* =========================================================
   VELAEA EA LAB — CREDIT ESTIMATE GATE V1
   ========================================================= */

.ea-credit-estimate-gate{
  margin:14px 0;
  padding:15px;
  border:1px solid rgba(91,119,156,.32);
  border-radius:16px;
  background:
    linear-gradient(180deg,rgba(11,34,58,.96),rgba(6,23,40,.98));
}

.ece-kicker{
  color:#f0c85f;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
}

.ece-head h4{
  margin:4px 0;
  color:#f5f8fc;
}

.ece-head p{
  margin:0;
  color:#9db0c3;
  line-height:1.5;
  font-size:12px;
}

#eaCreditEstimateButton{
  width:100%;
  margin-top:12px;
  border:0;
  border-radius:11px;
  padding:12px 14px;
  background:linear-gradient(135deg,#f5cf69,#e8b94f);
  color:#17202a;
  font-weight:800;
  cursor:pointer;
}

#eaCreditEstimateButton:disabled{
  opacity:.55;
  cursor:wait;
}

.ece-result{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:12px;
}

.ece-result>div{
  padding:10px;
  border:1px solid rgba(83,115,151,.30);
  border-radius:11px;
  background:#071a2d;
}

.ece-result small{
  display:block;
  color:#8fa4b9;
  font-size:10px;
}

.ece-result strong{
  display:block;
  margin-top:3px;
  color:#f4f7fb;
  font-size:16px;
}

#eaCreditEstimateExpiry{
  grid-column:1/-1;
}

.ece-note{
  margin-top:10px;
  color:#8399ae;
  font-size:10px;
  line-height:1.45;
}

.ea-credit-estimate-gate[data-state="blocked"],
.ea-credit-estimate-gate[data-state="error"]{
  border-color:rgba(239,68,68,.35);
}

.ea-credit-estimate-gate[data-state="quoted"]{
  border-color:rgba(34,197,94,.35);
}

@media(max-width:700px){
  .ece-result{
    grid-template-columns:1fr;
  }
}



/* EA_LAB_AI_CREDIT_FRACTION_VISUAL_V1 */
#quotaUsed .ea-credit-amount__main{
  font-size: 1em;
  font-weight: inherit;
  line-height: inherit;
}

#quotaUsed .ea-credit-amount__fraction{
  font-size: 0.52em;
  font-weight: 700;
  opacity: 0.88;
  vertical-align: 0.26em;
  letter-spacing: 0.01em;
}

@media (max-width: 768px){
  #quotaUsed .ea-credit-amount__fraction{
    font-size: 0.56em;
    vertical-align: 0.22em;
  }
}
