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