#serm-lightning {
  margin-top: 20px;
  margin-bottom: 20px;
  font-family: inherit;
}

#serm-lightning .sl-card {
  background: #fff;
  color: #253243;
  border: 1px solid #dce3eb;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,.045);
}

#serm-lightning .sl-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

#serm-lightning h2 {
  margin: 0 0 5px;
  font-size: 21px;
  font-weight: 650;
  color: inherit;
}

#serm-lightning .sl-header p {
  margin: 0;
  color: #667587;
  font-size: 13px;
}

#serm-lightning .sl-badge {
  padding: 7px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

#serm-lightning .sl-wait {
  background: #edf1f5;
  color: #536477;
}

#serm-lightning .sl-online {
  background: #e6f4ea;
  color: #176b3a;
}

#serm-lightning .sl-offline {
  background: #fff0ed;
  color: #a73724;
}

#serm-lightning .sl-stale {
  background: #fff3d9;
  color: #865a10;
}

#serm-lightning .sl-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

#serm-lightning .sl-stat {
  background: #f4f7fa;
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}

#serm-lightning .sl-stat span {
  display: block;
  color: #647487;
  font-size: 12px;
  margin-bottom: 8px;
}

#serm-lightning .sl-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

#serm-lightning #sl-last {
  font-size: 15px;
}

#serm-lightning .sl-summary {
  margin: 12px 0;
  font-size: 14px;
}

#serm-lightning .sl-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 15px;
  padding-top: 13px;
  border-top: 1px solid #e2e7ee;
  color: #69798b;
  font-size: 12px;
}

#serm-lightning .sl-note {
  margin: 14px 0 0;
  color: #69798b;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 680px) {
  #serm-lightning .sl-card {
    padding: 16px;
  }

  #serm-lightning .sl-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  #serm-lightning .sl-card {
    background: #202a35;
    color: #edf1f6;
    border-color: #384655;
  }

  #serm-lightning .sl-stat {
    background: #2c3947;
  }

  #serm-lightning .sl-header p,
  #serm-lightning .sl-stat span,
  #serm-lightning .sl-footer,
  #serm-lightning .sl-note {
    color: #b4c1cf;
  }

  #serm-lightning .sl-footer {
    border-color: #465363;
  }
}
