.sdev-st-tc-wrap {
  max-width: 740px;
  margin: 22px auto;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #ea580c;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  font-family: inherit;
  color: #1e293b;
  box-sizing: border-box;
}

.sdev-st-tc-wrap *,
.sdev-st-tc-wrap *::before,
.sdev-st-tc-wrap *::after {
  box-sizing: border-box;
}

.sdev-st-tc-wrap [hidden] {
  display: none !important;
}

/* हेडर */
.sdev-st-tc-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.sdev-st-tc-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  font-size: 16px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
}

.sdev-st-tc-subtag {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 6px;
}

/* मुख्य टैब्स */
.sdev-st-tc-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.sdev-st-tc-tab {
  min-height: 42px;
  padding: 8px 10px;
  border: none;
  border-radius: 9px;
  background: transparent !important;
  color: #475569 !important;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sdev-st-tc-tab.is-active {
  background: #ffffff !important;
  color: #c2410c !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* विजुअल थर्मामीटर बॉक्स */
.sdev-st-tc-visual-box {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.sdev-st-tc-svg-wrap {
  flex: 0 0 185px;
  max-width: 185px;
}

.sdev-st-tc-svg {
  width: 100%;
  height: auto;
  display: block;
}

.sdev-st-tc-mercury,
.sdev-st-tc-bulb {
  transition:
    y 0.4s ease,
    height 0.4s ease,
    fill 0.35s ease;
}

.sdev-st-tc-formula-info {
  flex: 1;
}

.sdev-st-tc-formula-cap {
  font-size: 12.5px;
  font-weight: 700;
  color: #c2410c;
  margin-bottom: 6px;
}

.sdev-st-tc-live-formula {
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #fdba74;
  padding: 6px 12px;
  border-radius: 8px;
  line-height: 1.4;
}

.sdev-st-tc-live-scale-read {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.sdev-st-tc-read-pill {
  font-size: 13px;
  font-weight: 700;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fdba74;
  padding: 3px 10px;
  border-radius: 999px;
}

.sdev-st-tc-formula-tip {
  margin: 9px 0 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

/* उदाहरण बटन */
.sdev-st-tc-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
}

.sdev-st-tc-ex-label {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
}

.sdev-st-tc-ex-btn {
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #92400e !important;
  background: #ffffff !important;
  border: 1px solid #fcd34d !important;
  border-radius: 7px;
  cursor: pointer;
}

.sdev-st-tc-ex-btn:hover {
  background: #fef3c7 !important;
}

/* पैमाना चयन + स्वैप बटन */
.sdev-st-tc-scale-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.sdev-st-tc-field {
  min-width: 0;
  max-width: 100%;
}

.sdev-st-tc-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

/* स्पष्ट ड्रॉपडाउन तीर सहित Select */
.sdev-st-tc-wrap .sdev-st-tc-select {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 36px 9px 12px;
  font-size: 14.5px;
  font-weight: 700;
  border: 1.5px solid #fdba74;
  border-radius: 10px;
  background-color: #fff7ed;
  color: #9a3412;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 14px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.sdev-st-tc-wrap .sdev-st-tc-select:hover {
  background-color: #ffedd5;
  border-color: #ea580c;
}

.sdev-st-tc-wrap .sdev-st-tc-select:focus {
  outline: none;
  border-color: #ea580c;
}

.sdev-st-tc-swap-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #ea580c !important;
  color: #ffffff !important;
  border: none !important;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.sdev-st-tc-swap-btn:hover {
  opacity: 0.92;
  transform: rotate(180deg);
}

/* तापमान इनपुट बॉक्स */
.sdev-st-tc-input-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.sdev-st-tc-val-box {
  display: flex;
  gap: 8px;
}

.sdev-st-tc-val {
  flex: 1 1 0%;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 16.5px;
  font-weight: 600;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
}

.sdev-st-tc-val:focus {
  outline: none;
  border-color: #ea580c;
}

.sdev-st-tc-val-unit {
  min-width: 58px;
  min-height: 46px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #c2410c;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 10px;
}

/* त्रुटि संदेश */
.sdev-st-tc-error {
  margin-bottom: 14px;
  padding: 11px 14px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-left: 4px solid #dc2626;
  border-radius: 9px;
  color: #991b1b;
  font-size: 14px;
  font-weight: 600;
}

/* क्रिया बटन */
.sdev-st-tc-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.sdev-st-tc-wrap .sdev-st-tc-btn-solve,
.sdev-st-tc-wrap .sdev-st-tc-btn-check {
  flex: 2;
  min-height: 46px;
  padding: 10px 16px;
  background-color: #16a34a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
}

.sdev-st-tc-wrap .sdev-st-tc-btn-clear,
.sdev-st-tc-wrap .sdev-st-tc-btn-new-q {
  flex: 1;
  min-height: 46px;
  padding: 10px 12px;
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}

/* Step-by-Step हल कार्ड्स */
.sdev-st-tc-result {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px dashed #e2e8f0;
}

.sdev-st-tc-step {
  padding: 13px 15px;
  border-radius: 11px;
  margin-bottom: 11px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
}

.sdev-st-tc-step-given {
  border-left-color: #2563eb;
  background: #eff6ff;
}
.sdev-st-tc-step-formula {
  border-left-color: #7c3aed;
  background: #f5f3ff;
}
.sdev-st-tc-step-calc {
  border-left-color: #ea580c;
  background: #fff7ed;
}
.sdev-st-tc-step-compare {
  border-left-color: #0284c7;
  background: #f0f9ff;
}
.sdev-st-tc-step-final {
  border-left-color: #16a34a;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}

.sdev-st-tc-step-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 6px;
  margin-bottom: 6px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.sdev-st-tc-step-body {
  font-size: 15px;
  line-height: 1.65;
  color: #1e293b;
}

.sdev-st-tc-step-body div + div {
  margin-top: 4px;
}

.sdev-st-tc-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.sdev-st-tc-compare-card {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
}

.sdev-st-tc-compare-card span {
  display: block;
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.sdev-st-tc-compare-card strong {
  display: block;
  font-size: 16px;
  color: #0369a1;
  margin-top: 2px;
}

.sdev-st-tc-final-ans {
  font-size: 22px;
  font-weight: 800;
  color: #14532d;
  margin: 4px 0;
}

.sdev-st-tc-final-note {
  font-size: 14.5px;
  font-weight: 600;
  color: #166534;
}

.sdev-st-tc-fact-badge {
  margin-top: 8px;
  padding: 7px 11px;
  background: #ffffff;
  border: 1px solid #86efac;
  border-radius: 8px;
  font-size: 13.5px;
  color: #15803d;
  font-weight: 600;
}

/* कॉपी व शेयर फुटर */
.sdev-st-tc-result-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.sdev-st-tc-wrap .sdev-st-tc-btn-copy,
.sdev-st-tc-wrap .sdev-st-tc-btn-wa {
  flex: 1 1 180px;
  min-height: 43px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}

.sdev-st-tc-wrap .sdev-st-tc-btn-copy {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

.sdev-st-tc-wrap .sdev-st-tc-btn-wa {
  background: #16a34a !important;
  color: #ffffff !important;
  border: none !important;
}

/* अभ्यास मोड */
.sdev-st-tc-pr-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
}

.sdev-st-tc-pr-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.sdev-st-tc-pr-badge {
  font-size: 13px;
  font-weight: 700;
  color: #c2410c;
  background: #ffedd5;
  padding: 4px 10px;
  border-radius: 999px;
}

.sdev-st-tc-pr-score {
  font-size: 13.5px;
  font-weight: 700;
  color: #15803d;
}

.sdev-st-tc-pr-question {
  margin: 0 0 8px;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.55;
  color: #0f172a;
}

.sdev-st-tc-pr-note {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: #475569;
}

.sdev-st-tc-pr-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sdev-st-tc-pr-answer {
  flex: 1 1 0%;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 16px;
  border: 1.5px solid #94a3b8;
  border-radius: 10px;
  background: #ffffff;
}

.sdev-st-tc-pr-unit {
  font-size: 15px;
  font-weight: 800;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 10px 15px;
  border-radius: 10px;
  white-space: nowrap;
}

.sdev-st-tc-pr-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
}

.sdev-st-tc-pr-feedback.is-right {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.sdev-st-tc-pr-feedback.is-wrong {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.sdev-st-tc-pr-steps {
  margin-top: 14px;
}

/* मोबाइल रिस्पॉन्सिव */
@media (max-width: 600px) {
  .sdev-st-tc-wrap {
    padding: 14px;
  }
  .sdev-st-tc-badge {
    font-size: 14.5px;
    border-radius: 12px;
  }
  .sdev-st-tc-visual-box {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .sdev-st-tc-svg-wrap {
    flex: none;
    width: 170px;
  }
  .sdev-st-tc-live-scale-read {
    justify-content: center;
  }
  .sdev-st-tc-scale-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .sdev-st-tc-swap-btn {
    width: 100%;
    height: 38px;
  }
  .sdev-st-tc-step-body {
    overflow-wrap: anywhere;
  }
  .sdev-st-tc-actions {
    flex-direction: column;
  }
  .sdev-st-tc-compare-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
