.vec {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --vec-primary: #0f3d2e;
  --vec-accent: #0b5fff;
  --vec-info-bg: #eef6ff;
  --vec-info-border: #cfe6ff;

  /* Header background vars */
  --vec-header-bg-color: #0f3d2e;
  --vec-header-bg-image: none;   /* e.g. url(...) */
  --vec-header-overlay: 0.25;    /* 0.0 to 0.85 */
  --vec-header-text: #ffffff;
}
.vec * { box-sizing: border-box; }

/* Slim header + optional background image */
.vec-header {
  position: relative;
  color: var(--vec-header-text);
  padding: 8px 12px;             /* slimmer */
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--vec-header-bg-color);
  background-image: var(--vec-header-bg-image);
  background-size: cover;
  background-position: center;
}

/* Overlay to improve text readability on images */
.vec-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,var(--vec-header-overlay));
  pointer-events: none;
}

.vec-header-left { position: relative; z-index: 1; }

.vec-title { font-size: 18px; font-weight: 800; line-height: 1.2; }

.vec-grid { display: grid; grid-template-columns: 1fr 420px; gap: 16px; }
@media (max-width: 980px) { .vec-grid { grid-template-columns: 1fr; } }

.vec-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.vec-card-title { font-weight: 800; margin-bottom: 10px; }

.vec label { display: block; font-size: 12px; color: #555; margin-top: 10px; }
.vec select, .vec input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-top: 6px;
  font-size: 14px;
}

.vec-help { margin-top: 8px; font-size: 12px; color: #666; }

/* Themeable info box */
.vec-info {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--vec-info-bg);
  border: 1px solid var(--vec-info-border);
}
.vec-info-title { font-weight: 800; margin-bottom: 8px; }
.vec-info ul { margin: 0; padding-left: 18px; }
.vec-info li { margin: 6px 0; font-size: 13px; }
.vec-info a { color: var(--vec-accent); }

.vec-results .vec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}
.vec-results strong { font-size: 16px; }
.vec-results hr { border: none; border-top: 1px solid #eee; margin: 10px 0; }

.vec-summary {
  margin-top: 10px;
  padding: 10px;
  background: var(--vec-primary);
  color: #fff;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.35;
}

.vec-red { color: #b42318; }
.vec-green { color: #067647; }

.vec-btn {
  margin-top: 12px;
  width: 100%;
  background: var(--vec-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

.vec-disclaimer p { font-size: 12px; color: #555; margin: 0; }
