.sdev-st-wo-wrap {
  max-width: 740px;
  margin: 22px auto;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #4f46e5;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  font-family: inherit;
  color: #1e293b;
  box-sizing: border-box;
  transition: border-top-color 0.25s ease;
}

.sdev-st-wo-wrap *,
.sdev-st-wo-wrap *::before,
.sdev-st-wo-wrap *::after {
  box-sizing: border-box;
}

/* HTML hidden गुण को हमेशा प्रभावी रखना */
.sdev-st-wo-wrap [hidden] {
  display: none !important;
}

/* हेडर */
.sdev-st-wo-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-wo-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
  font-size: 16px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.sdev-st-wo-subtag {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: Consolas, Monaco, monospace;
}

/* मुख्य टैब्स */
.sdev-st-wo-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.sdev-st-wo-wrap .sdev-st-wo-tab {
  min-height: 42px;
  padding: 8px 10px;
  border: none !important;
  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-wo-wrap .sdev-st-wo-tab.is-active {
  background: #ffffff !important;
  color: #4338ca !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* लेबल व सूत्र समूह चयन (दोनों के अलग-अलग रंग) */
.sdev-st-wo-section-label {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.sdev-st-wo-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.sdev-st-wo-wrap .sdev-st-wo-group-btn {
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sdev-st-wo-wrap .sdev-st-wo-group-btn[data-group="work"] {
  border: 1.5px solid #c7d2fe !important;
  background: #eef2ff !important;
  color: #3730a3 !important;
}

.sdev-st-wo-wrap .sdev-st-wo-group-btn[data-group="work"].is-active {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
  color: #ffffff !important;
}

.sdev-st-wo-wrap .sdev-st-wo-group-btn[data-group="ohm"] {
  border: 1.5px solid #fcd34d !important;
  background: #fffbeb !important;
  color: #92400e !important;
}

.sdev-st-wo-wrap .sdev-st-wo-group-btn[data-group="ohm"].is-active {
  background: #d97706 !important;
  border-color: #d97706 !important;
  color: #ffffff !important;
}

/* विजुअल सूत्र त्रिभुज बॉक्स */
.sdev-st-wo-visual-box {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  transition: all 0.25s ease;
}

.sdev-st-wo-svg-wrap {
  flex: 0 0 185px;
  max-width: 185px;
}

.sdev-st-wo-svg {
  width: 100%;
  height: auto;
  display: block;
}

.sdev-st-wo-tri-zone {
  transition: fill 0.25s ease;
}

.sdev-st-wo-tri-zone.is-highlighted {
  fill: #4f46e5;
}

.sdev-st-wo-tri-text.is-highlighted {
  fill: #ffffff;
}

.sdev-st-wo-formula-info {
  flex: 1;
}

.sdev-st-wo-formula-cap {
  font-size: 12.5px;
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 6px;
}

.sdev-st-wo-live-formula {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.sdev-st-wo-live-sym {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 10px;
  background: #ffffff;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  font-family: Consolas, Monaco, monospace;
  font-size: 14.5px;
  font-weight: 700;
  color: #4338ca;
}

.sdev-st-wo-formula-tip {
  margin: 8px 0 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

/* मोड बटन (केवल 1 पंक्ति) */
.sdev-st-wo-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.sdev-st-wo-wrap .sdev-st-wo-mode-btn {
  min-height: 44px;
  padding: 9px 8px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1 !important;
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sdev-st-wo-wrap .sdev-st-wo-mode-btn.is-active {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
  color: #ffffff !important;
}

/* उदाहरण बटन */
.sdev-st-wo-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-wo-ex-label {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
}

.sdev-st-wo-wrap .sdev-st-wo-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-wo-wrap .sdev-st-wo-ex-btn:hover {
  background: #fef3c7 !important;
}

/* इनपुट फ़ील्ड्स */
.sdev-st-wo-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.sdev-st-wo-field {
  min-width: 0;
  max-width: 100%;
}

.sdev-st-wo-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.sdev-st-wo-field-outunit {
  grid-column: 1 / -1;
}

.sdev-st-wo-input-group {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.sdev-st-wo-input-group input {
  flex: 1 1 0%;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  font-size: 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
}

.sdev-st-wo-input-group input:focus {
  outline: none;
  border-color: #4f46e5;
}

/* स्पष्ट ड्रॉपडाउन तीर सहित Select (इंडिगो डिफ़ॉल्ट) */
.sdev-st-wo-wrap .sdev-st-wo-select {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 32px 9px 10px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid #a5b4fc;
  border-radius: 10px;
  background-color: #eef2ff;
  color: #3730a3;
  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='%234338ca' 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 10px center;
  background-size: 14px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.sdev-st-wo-wrap .sdev-st-wo-input-group .sdev-st-wo-select {
  flex: 0 1 auto;
  width: auto !important;
  max-width: 56%;
}

.sdev-st-wo-wrap .sdev-st-wo-select:hover,
.sdev-st-wo-wrap .sdev-st-wo-select:focus {
  background-color: #e0e7ff;
  border-color: #4f46e5;
  outline: none;
}

.sdev-st-wo-wrap .sdev-st-wo-out-unit {
  width: 100% !important;
  max-width: 100%;
}

/* ==================== समूह 2: ओम का नियम (अंबर/केसरिया थीम) ==================== */
.sdev-st-wo-wrap.sdev-st-wo-theme-ohm {
  border-top-color: #d97706;
}

.sdev-st-wo-wrap.sdev-st-wo-theme-ohm .sdev-st-wo-badge {
  background: #fffbeb;
  color: #b45309;
  border-color: #fcd34d;
}

.sdev-st-wo-wrap.sdev-st-wo-theme-ohm .sdev-st-wo-tab.is-active {
  color: #b45309 !important;
}

.sdev-st-wo-wrap.sdev-st-wo-theme-ohm .sdev-st-wo-visual-box {
  background: linear-gradient(135deg, #fffdf5 0%, #fef3c7 100%);
  border-color: #fcd34d;
}

.sdev-st-wo-wrap.sdev-st-wo-theme-ohm .sdev-st-wo-tri-zone.is-highlighted {
  fill: #d97706;
}

.sdev-st-wo-wrap.sdev-st-wo-theme-ohm .sdev-st-wo-formula-cap {
  color: #b45309;
}

.sdev-st-wo-wrap.sdev-st-wo-theme-ohm .sdev-st-wo-live-sym {
  color: #b45309;
  border-color: #fcd34d;
}

.sdev-st-wo-wrap.sdev-st-wo-theme-ohm .sdev-st-wo-mode-btn.is-active {
  background: #d97706 !important;
  border-color: #d97706 !important;
  color: #ffffff !important;
}

.sdev-st-wo-wrap.sdev-st-wo-theme-ohm .sdev-st-wo-input-group input:focus {
  border-color: #d97706;
}

.sdev-st-wo-wrap.sdev-st-wo-theme-ohm .sdev-st-wo-select {
  border-color: #fbbf24;
  background-color: #fffbeb;
  color: #92400e;
  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='%23b45309' 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");
}

.sdev-st-wo-wrap.sdev-st-wo-theme-ohm .sdev-st-wo-select:hover,
.sdev-st-wo-wrap.sdev-st-wo-theme-ohm .sdev-st-wo-select:focus {
  background-color: #fef3c7;
  border-color: #d97706;
}

/* त्रुटि संदेश */
.sdev-st-wo-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-wo-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.sdev-st-wo-wrap .sdev-st-wo-btn-solve,
.sdev-st-wo-wrap .sdev-st-wo-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-wo-wrap .sdev-st-wo-btn-clear,
.sdev-st-wo-wrap .sdev-st-wo-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-wo-result {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px dashed #e2e8f0;
}

.sdev-st-wo-step {
  padding: 13px 15px;
  border-radius: 11px;
  margin-bottom: 11px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #4f46e5;
}

.sdev-st-wo-step-given {
  border-left-color: #2563eb;
  background: #eff6ff;
}
.sdev-st-wo-step-convert {
  border-left-color: #d97706;
  background: #fffbeb;
}
.sdev-st-wo-step-formula {
  border-left-color: #7c3aed;
  background: #f5f3ff;
}
.sdev-st-wo-step-calc {
  border-left-color: #0284c7;
  background: #f0f9ff;
}
.sdev-st-wo-step-final {
  border-left-color: #16a34a;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}

.sdev-st-wo-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-wo-step-body {
  font-size: 15px;
  line-height: 1.65;
  color: #1e293b;
}

.sdev-st-wo-step-body div + div {
  margin-top: 4px;
}

.sdev-st-wo-final-ans {
  font-size: 21px;
  font-weight: 800;
  color: #14532d;
  margin: 4px 0;
}

.sdev-st-wo-final-note {
  font-size: 14.5px;
  font-weight: 600;
  color: #166534;
}

.sdev-st-wo-tip-box {
  margin-top: 10px;
  padding: 9px 12px;
  background: #ffffff;
  border: 1px solid #86efac;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #15803d;
  font-weight: 600;
}

/* शेयर व कॉपी फुटर */
.sdev-st-wo-result-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.sdev-st-wo-wrap .sdev-st-wo-btn-copy,
.sdev-st-wo-wrap .sdev-st-wo-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-wo-wrap .sdev-st-wo-btn-copy {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

.sdev-st-wo-wrap .sdev-st-wo-btn-wa {
  background: #16a34a !important;
  color: #ffffff !important;
  border: none !important;
}

/* अभ्यास मोड */
.sdev-st-wo-pr-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
}

.sdev-st-wo-pr-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.sdev-st-wo-pr-badge {
  font-size: 13px;
  font-weight: 700;
  color: #4338ca;
  background: #e0e7ff;
  padding: 4px 10px;
  border-radius: 999px;
}

.sdev-st-wo-pr-score {
  font-size: 13.5px;
  font-weight: 700;
  color: #15803d;
}

.sdev-st-wo-pr-question {
  margin: 0 0 8px;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.55;
  color: #0f172a;
}

.sdev-st-wo-pr-note {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: #475569;
}

.sdev-st-wo-pr-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sdev-st-wo-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-wo-pr-unit {
  font-size: 15px;
  font-weight: 800;
  color: #3730a3;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 10px 14px;
  border-radius: 10px;
  white-space: nowrap;
}

.sdev-st-wo-pr-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
}

.sdev-st-wo-pr-feedback.is-right {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.sdev-st-wo-pr-feedback.is-wrong {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.sdev-st-wo-pr-steps {
  margin-top: 14px;
}

/* मोबाइल रिस्पॉन्सिव */
@media (max-width: 600px) {
  .sdev-st-wo-wrap {
    padding: 14px;
  }
  .sdev-st-wo-badge {
    font-size: 14.5px;
    border-radius: 12px;
  }
  .sdev-st-wo-groups,
  .sdev-st-wo-inputs {
    grid-template-columns: minmax(0, 1fr);
  }
  .sdev-st-wo-wrap .sdev-st-wo-input-group .sdev-st-wo-select {
    max-width: 58%;
    font-size: 13px;
    padding: 9px 26px 9px 8px;
    background-position: right 8px center;
    background-size: 12px;
  }
  .sdev-st-wo-visual-box {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .sdev-st-wo-svg-wrap {
    flex: none;
    width: 170px;
  }
  .sdev-st-wo-mode-btn {
    font-size: 12.5px !important;
    padding: 8px 4px !important;
    line-height: 1.25;
  }
  .sdev-st-wo-step-body {
    overflow-wrap: anywhere;
  }
  .sdev-st-wo-actions {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .sdev-st-wo-input-group {
    flex-direction: column;
  }
  .sdev-st-wo-wrap .sdev-st-wo-input-group .sdev-st-wo-select {
    width: 100% !important;
    max-width: 100%;
  }
}
