.jtn-calc {
  margin: 24px 0;
  padding: 20px;
  min-height: 360px;
  border: 1px solid #d6dfe8;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(24, 42, 70, 0.05);
  box-sizing: border-box;
}
.jtn-calc h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.16rem;
  color: #182a46;
}
.jtn-calc-sub {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e4ebf2;
}
.jtn-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.jtn-calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jtn-calc-field label {
  font-size: 0.93rem;
  font-weight: 600;
  color: #182a46;
}
.jtn-calc-field input,
.jtn-calc-field select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #bcc8d6;
  border-radius: 10px;
  font-size: 1rem;
  color: #182a46;
  background: #fff;
  box-sizing: border-box;
}
.jtn-calc-field input:focus,
.jtn-calc-field select:focus {
  outline: 2px solid #2454c4;
  border-color: #2454c4;
}
.jtn-calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: #f4f7fc;
  border: 1px solid #dce5f2;
}
.jtn-calc-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.jtn-calc-stat span {
  font-size: 0.86rem;
  color: #526175;
}
.jtn-calc-stat strong {
  font-size: 1.18rem;
  color: #182a46;
}
.jtn-calc-stat--primary strong {
  color: #2454c4;
  font-size: 1.34rem;
}
.jtn-calc-note {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 0.87rem;
  color: #526175;
}

.jtn-quiz-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #ecf2ff;
  border: 1px solid #c9dafc;
  position: sticky;
  top: 8px;
  z-index: 4;
}
.jtn-quiz-timer { font-weight: 700; color: #193d91; font-size: 1.05rem; }
.jtn-quiz-q {
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid #e1e8f0;
  border-radius: 10px;
  background: #fafcff;
}
.jtn-quiz-q p { margin: 0 0 10px; font-weight: 600; color: #182a46; }
.jtn-quiz-opts { display: grid; gap: 6px; }
.jtn-quiz-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #dce5f2;
  background: #fff;
  cursor: pointer;
  font-size: 0.96rem;
}
.jtn-quiz-opt input { margin-top: 3px; width: auto; min-height: auto; }
.jtn-quiz-opt--right { border-color: #1e8e3e; background: #e8f6ec; }
.jtn-quiz-opt--wrong { border-color: #d93025; background: #fce8e6; }
.jtn-quiz-exp {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f1f5fb;
  font-size: 0.9rem;
  color: #2e3b50;
}
.jtn-quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.jtn-quiz-btn {
  padding: 11px 20px;
  border: 0;
  border-radius: 10px;
  background: #2454c4;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.jtn-quiz-btn--outline {
  background: #fff;
  color: #2454c4;
  border: 1px solid #2454c4;
}
.jtn-quiz-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.jtn-quiz-badge--pass { background: #e6f4ea; color: #137333; }
.jtn-quiz-badge--fail { background: #fce8e6; color: #c5221f; }
