/* ── Network Performance Scorecard shortcode ───────────────────────────── */

.fl-scorecard {
  position: relative;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, sans-serif);
  color: var(--color-charcoal, #4A4340);
}

/* Decorative coral glow blob behind the card */
.fl-scorecard__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  right: -50px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237,164,128,.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.fl-scorecard__panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid rgba(74,67,64,.12);
  border-radius: 20px;
  box-shadow: 0 36px 70px -38px rgba(74,67,64,.45);
  overflow: hidden;
}

/* Header */
.fl-scorecard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(74,67,64,.09);
}
.fl-scorecard__title {
  font-weight: 700;
  font-size: 15.5px;
  color: #4A4340;
}
.fl-scorecard__subtitle {
  font-size: 12px;
  color: rgba(74,67,64,.55);
  margin-top: 2px;
}
.fl-scorecard__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #4A9E9C;
  background: #F4F9F9;
  padding: 5px 11px;
  border-radius: 99px;
  white-space: nowrap;
}
.fl-scorecard__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4A9E9C;
  flex-shrink: 0;
  animation: fl-sc-pulse 1.4s ease-in-out infinite;
}
@keyframes fl-sc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.75); }
}

/* KPI tiles */
.fl-scorecard__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(74,67,64,.09);
}
.fl-scorecard__kpi {
  padding: 16px 20px;
}
.fl-scorecard__kpi + .fl-scorecard__kpi {
  border-left: 1px solid rgba(74,67,64,.09);
}
.fl-scorecard__kpi-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(74,67,64,.45);
}
.fl-scorecard__kpi-value {
  font-family: var(--font-heading, Georgia, serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
  margin-top: 6px;
  color: #4A4340;
}
.fl-scorecard__kpi-unit {
  font-family: var(--font-sans, sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: rgba(74,67,64,.55);
}
.fl-scorecard__kpi-delta {
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 5px;
}
.fl-scorecard__kpi-delta--good { color: #2D9E6B; }
.fl-scorecard__kpi-delta--bad  { color: #D4634A; }

/* Location rows */
.fl-scorecard__rows {
  padding: 14px 18px 8px;
}
.fl-scorecard__rows-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(74,67,64,.45);
  padding: 0 4px;
  margin-bottom: 6px;
}
.fl-scorecard__rows-hint {
  font-weight: 400;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}
.fl-scorecard__row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s ease;
}
.fl-scorecard__row-name {
  width: 92px;
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(74,67,64,.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease, font-weight .2s ease;
}
.fl-scorecard__bar-track {
  flex: 1;
  height: 8px;
  background: rgba(74,67,64,.08);
  border-radius: 99px;
  overflow: hidden;
}
.fl-scorecard__bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: background .25s ease, width .6s cubic-bezier(.25,1,.5,1);
}
.fl-scorecard__row-pct {
  width: 38px;
  text-align: right;
  font-size: 12.5px;
  font-weight: 600;
  color: #4A4340;
  transition: color .2s ease;
}

/* AI insight */
.fl-scorecard__ai {
  margin: 10px 18px 18px;
  background: #4A4340;
  border-radius: 14px;
  padding: 15px 17px;
}
.fl-scorecard__ai-hd {
  display: flex;
  align-items: center;
  gap: 9px;
}
.fl-scorecard__ai-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  color: #fff;
  flex-shrink: 0;
}
.fl-scorecard__ai-label {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.fl-scorecard__ai-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 99px;
  border: none;
  background: rgba(255,255,255,.14);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s ease;
}
.fl-scorecard__ai-toggle:hover { background: rgba(255,255,255,.26); }
.fl-scorecard__ai-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #fff;
  margin: 11px 0 0;
  min-height: 3.2em; /* prevent layout jump on text change */
}
.fl-scorecard__ai-bar {
  height: 3px;
  background: rgba(255,255,255,.16);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 13px;
}
.fl-scorecard__ai-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: #D4764A;
  transition: none;
}
