.szc-wrap {
  max-width: 980px;
  margin: 32px auto;
  padding: 0 16px;
}

.szc-card {
  background: #ffffff;
  border: 1px solid #e7ecef;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(10, 24, 38, 0.08);
  overflow: hidden;
}

.szc-header {
  padding: 28px 28px 18px;
  background: linear-gradient(135deg, #1f6b4f, #14513b);
  color: #ffffff !important;
}

.szc-header h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
  color: #ffffff !important;
}

.szc-header p {
  margin: 0;
  opacity: 1;
  color: rgba(255,255,255,0.92) !important;
}

.szc-section-title {
  padding: 0 28px;
  margin: 18px 0 10px;
  font-weight: 700;
  color: #0f172a;
}

.szc-grid {
  display: grid;
  gap: 16px;
  padding: 0 28px;
}

.szc-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.szc-field, .szc-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.szc-field-group {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.szc-field label {
  font-weight: 600;
  color: #334155;
}

.szc-field input,
.szc-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d5dce3;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;
}

.szc-field input:focus,
.szc-field select:focus {
  outline: none;
  border-color: #1f6b4f;
  box-shadow: 0 0 0 3px rgba(31, 107, 79, 0.12);
}

.szc-note {
  margin: 12px 28px 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
}

.szc-actions {
  display: flex;
  gap: 12px;
  padding: 24px 28px 28px;
}

.szc-actions button {
  min-height: 50px;
  border: none;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

#szc-calc-btn {
  background: #1f6b4f;
  color: #fff;
  flex: 1;
}

.szc-btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.szc-results {
  border-top: 1px solid #eef2f7;
  padding: 24px 28px 28px;
  background: #fcfdfd;
}

.szc-result-banner {
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.szc-result-banner.is-success {
  background: #ecfdf5;
  color: #166534;
}

.szc-result-banner.is-muted {
  background: #f8fafc;
  color: #475569;
}

.szc-result-grid,
.szc-nisab-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.szc-nisab-box {
  margin-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.szc-result-item,
.szc-nisab-box > div {
  background: #fff;
  border: 1px solid #e7ecef;
  border-radius: 14px;
  padding: 16px;
}

.szc-result-item span,
.szc-nisab-box span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 8px;
}

.szc-result-item strong,
.szc-nisab-box strong {
  font-size: 20px;
  color: #0f172a;
}

.szc-result-item.szc-accent {
  background: #1f6b4f;
}

.szc-result-item.szc-accent span,
.szc-result-item.szc-accent strong {
  color: #fff;
}

@media (max-width: 767px) {
  .szc-grid-2,
  .szc-result-grid,
  .szc-nisab-box,
  .szc-field-group {
    grid-template-columns: 1fr;
  }

  .szc-header,
  .szc-grid,
  .szc-section-title,
  .szc-note,
  .szc-actions,
  .szc-results {
    padding-left: 18px;
    padding-right: 18px;
  }

  .szc-actions {
    flex-direction: column;
  }
}

/* Extra protection against theme overrides */
#szc-app .szc-header,
#szc-app .szc-header * {
  color: #ffffff !important;
}

#szc-app .szc-section-title {
  color: #14513b;
}
