/* WRAPPER ONLY */
.fce-saas {
  font-family: 'Inter', sans-serif;
  max-width: 1100px;
  margin: auto;
  padding: 30px;
}

/* GRID */
.fce-saas .fce-grid {
  display: flex;
  gap: 30px;
}

/* LEFT */
.fce-saas .fce-left {
  width: 35%;
  padding: 30px;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
}

.fce-saas .sub {
  color: #64748b;
  margin-bottom: 20px;
}

/* INPUT */
.fce-saas .field label {
  font-weight: 600;
  font-size: 14px;
}

.fce-saas input[type="number"] {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  margin: 6px 0;
}

/* RANGE */
.fce-saas input[type="range"] {
  width: 100%;
  accent-color: #4f46e5;
}

/* RULE BOX */
.fce-saas .rule-box {
  margin-top: 20px;
  padding: 15px;
  border-radius: 12px;
  background: #eef2ff;
  font-size: 14px;
}

/* RIGHT */
.fce-saas .fce-right {
  width: 65%;
}

/* KPI */
.fce-saas .kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

/* CARD */
.fce-saas .card {
  padding: 20px;
  border-radius: 16px;
  background: #c2d1e8;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: 0.25s;
}

.fce-saas .card:hover {
  transform: translateY(-5px);
}

.fce-saas .card span {
  font-size: 13px;
  color: #64748b;
}

.fce-saas .card h2 {
  font-size: 24px;
  margin-top: 6px;
  font-weight: 700;
}

/* HIGHLIGHT */
.fce-saas .highlight {
  background: linear-gradient(135deg,#4f46e5,#06b6d4);
  color: #fff;
}

.fce-saas .highlight h2,
.fce-saas .highlight span {
  color: #fff !important;
}

/* BADGE */
.fce-saas .badge {
  margin-bottom: 10px;
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.fce-saas .high { background:#fee2e2;color:#dc2626;}
.fce-saas .medium { background:#fef3c7;}
.fce-saas .low { background:#dcfce7;}
.fce-saas .neutral { background:#e5e7eb;}

/* BUTTON */
.fce-saas .actions button {
  margin-right: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg,#4f46e5,#06b6d4);
  color: #fff;
  cursor: pointer;
}

/* CHART */
.fce-saas canvas#chart {
  margin-top: 20px;
  height: 260px !important;
}

/* MOBILE */
@media (max-width:768px){
  .fce-saas .fce-grid {
    flex-direction: column;
  }
}
@media (max-width:768px){

  .fce-saas {
    padding: 15px;
  }

  .fce-saas .fce-grid {
    flex-direction: column;
    gap: 20px;
  }

  /* FULL WIDTH PANELS */
  .fce-saas .fce-left,
  .fce-saas .fce-right {
    width: 100%;
  }

  /* INPUT FIX */
  .fce-saas input[type="number"] {
    font-size: 16px;
    padding: 10px;
  }

  /* KPI STACK */
  .fce-saas .kpi {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* MAKE RESULT BIG */
  .fce-saas .highlight {
    grid-column: span 2;
    text-align: center;
  }

  .fce-saas .highlight h2 {
    font-size: 36px;
  }

  /* BUTTON FIX */
  .fce-saas .actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .fce-saas .actions button {
    flex: 1;
    text-align: center;
  }

  /* CHART FIX */
  .fce-saas canvas#chart {
    height: 220px !important;
  }

}
@media (max-width:768px){

  .fce-saas input[type="range"] {
    height: 30px;
  }

}