@scope (#original-content) {

#test-score-calculator-section * {
  box-sizing: border-box;
}

#test-score-calculator-section h1 {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 15px;
  text-align: center;
  line-height: 1.3;
}

#test-score-calculator-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  margin-top: 35px;
  margin-bottom: 15px;
  border-bottom: 3px solid #22c55e;
  padding-bottom: 8px;
}

#test-score-calculator-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #34495e;
  margin-top: 25px;
  margin-bottom: 12px;
}

#test-score-calculator-section p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 15px;
  font-weight: 500;
}

#test-score-calculator-section .author-date {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 25px;
  font-weight: 600;
}

.ts-calculator-container {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 2px solid #6ee7b7;
  border-radius: 12px;
  padding: 30px;
  margin: 25px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ts-mode-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.ts-mode-btn {
  padding: 10px 20px;
  background-color: #ffffff;
  border: 2px solid #22c55e;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: #22c55e;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 160px;
  max-width: 220px;
}

.ts-mode-btn:hover {
  background-color: #22c55e;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(34,197,94,0.3);
}

.ts-mode-btn.active {
  background-color: #22c55e;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(34,197,94,0.3);
}

.ts-input-group {
  margin-bottom: 20px;
}

.ts-input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #2c3e50;
  font-size: 15px;
}

.ts-input-group input,
.ts-input-group select {
  width: 100%;
  padding: 14px;
  border: 2px solid #bdc3c7;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.3s ease;
  background-color: #ffffff;
}

.ts-input-group input:focus,
.ts-input-group select:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}

.ts-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ts-test-entry {
  background: #ffffff;
  border: 2px solid #6ee7b7;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.ts-test-entry h5 {
  margin: 0 0 10px 0;
  color: #059669;
  font-weight: 800;
  font-size: 15px;
}

.ts-add-test-btn {
  width: 100%;
  padding: 12px;
  background: #ffffff;
  border: 2px dashed #22c55e;
  border-radius: 8px;
  color: #22c55e;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
}

.ts-add-test-btn:hover {
  background: #d1fae5;
  border-color: #059669;
}

.ts-calc-button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ts-calc-button:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(34,197,94,0.4);
}

.ts-results-container {
  margin-top: 25px;
  padding: 25px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid #3b82f6;
  border-radius: 10px;
  display: none;
}

.ts-results-container.show {
  display: block;
}

.ts-main-result {
  background: linear-gradient(135deg, #ffffff 0%, #d1fae5 100%);
  border: 3px solid #22c55e;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  margin-bottom: 20px;
}

.ts-main-result h4 {
  color: #059669;
  font-weight: 800;
  margin: 0 0 15px 0;
  font-size: 18px;
  text-transform: uppercase;
}

.ts-main-result .score {
  font-size: 48px;
  color: #22c55e;
  font-weight: 800;
  margin: 15px 0;
}

.ts-breakdown {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  border: 2px solid #6ee7b7;
  margin-top: 20px;
}

.ts-breakdown h5 {
  color: #059669;
  font-weight: 800;
  margin: 0 0 15px 0;
  font-size: 17px;
}

.ts-detail-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #d1fae5;
  font-weight: 600;
}

.ts-detail-item:last-child {
  border-bottom: none;
}

.ts-detail-item .label {
  color: #374151;
}

.ts-detail-item .value {
  color: #22c55e;
  font-weight: 800;
}

.formula-box {
  background-color: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  font-weight: 600;
}

.formula-box h4 {
  color: #d97706;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 18px;
}

.example-box {
  background-color: #eff6ff;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.example-box h4 {
  color: #1e40af;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

table th {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  padding: 14px;
  text-align: left;
  font-weight: 800;
  font-size: 15px;
}

table td {
  padding: 12px 14px;
  border-bottom: 1px solid #ecf0f1;
  font-weight: 600;
  color: #2c3e50;
}

table tr:hover {
  background-color: #d1fae5;
}

ul, ol {
  margin: 15px 0;
  padding-left: 25px;
}

ul li, ol li {
  margin-bottom: 10px;
  font-weight: 600;
  color: #444;
  line-height: 1.6;
}

.highlight-box {
  background-color: #fef9c3;
  border-left: 5px solid #eab308;
  padding: 18px;
  margin: 20px 0;
  border-radius: 6px;
}

.highlight-box strong {
  color: #854d0e;
  font-weight: 800;
}

.info-box {
  background-color: #d1fae5;
  border-left: 5px solid #22c55e;
  padding: 18px;
  margin: 20px 0;
  border-radius: 6px;
}

.info-box strong {
  color: #059669;
  font-weight: 800;
}

@media (max-width: 768px) {
  #test-score-calculator-section h1 {
    font-size: 26px;
  }
  
  #test-score-calculator-section h2 {
    font-size: 21px;
  }
  
  #test-score-calculator-section h3 {
    font-size: 18px;
  }
  
  .ts-calculator-container {
    padding: 20px;
  }
  
  .ts-two-column {
    grid-template-columns: 1fr;
  }
  
  .ts-calc-button {
    font-size: 16px;
    padding: 14px;
  }
  
  .ts-mode-btn {
    min-width: 100%;
  }
  
  .ts-main-result .score {
    font-size: 36px;
  }
  
  table {
    font-size: 14px;
  }
  
  table th, table td {
    padding: 10px 8px;
  }
}

@media (max-width: 480px) {
  #test-score-calculator-section {
    padding: 15px;
  }
  
  #test-score-calculator-section h1 {
    font-size: 22px;
  }
}

}
