.calc-col-tool {
  max-width: 900px;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}



.calc-cth-title { margin: 0 0 5px 0; font-size: 1.4em; }
.calc-cth-subtitle { margin: 0; opacity: 0.9; font-size: 0.95em; }

.calc-cth-card {
  background: #fff;
  border-radius: 0px 0px 12px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 25px;
  border: 1px solid #e5e7eb;
}

.calc-cth-input-section {
  margin-bottom: 20px;
}


.calc-cth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  background: #6b7280 !important;
}








.calc-cth-input-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
}

#calc-ct-input {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
  resize: vertical;
  transition: border-color 0.2s ease;
}

#calc-ct-input:focus {
  outline: none;
  border-color: #160093;
  box-shadow: 0 0 0 3px rgba(22, 0, 147, 0.1);
}

.calc-cth-info {
  margin-top: 8px;
  font-size: 0.9em;
  color: #6b7280;
  font-weight: 500;
}

.calc-cth-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.calc-cth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.calc-cth-field label {
  font-weight: 600;
  font-size: 0.9em;
  color: #374151;
}

.calc-cth-field input {
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95em;
  transition: all 0.2s ease;
}

.calc-cth-field input:focus {
  outline: none;
  border-color: #160093;
  box-shadow: 0 0 0 3px rgba(22, 0, 147, 0.1);
}

.calc-cth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 15px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.calc-cth-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 140px;
  justify-content: center;
}




.calc-cth-error {
  color: #dc2626;
  font-size: 0.9em;
  font-weight: 500;
  margin-top: 5px;
  padding: 8px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
}

.calc-cth-output {
  margin-top: 20px;
}

.calc-cth-output label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  color: #374151;
}

#calc-ct-output-wrapper {
  overflow: auto;
  max-height: 400px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
}

#calc-ct-output-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 600px;
}

#calc-ct-output-table th,
#calc-ct-output-table td {
  border: 1px solid #d1d5db;
  padding: 12px 8px;
  text-align: left;
  font-size: 0.9em;
}

#calc-ct-output-table th {
  background: linear-gradient(104deg, #000000 0%, #160093 100%);
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
}

#calc-ct-output-table tr:nth-child(even) {
  background: #f9fafb;
}

#calc-ct-output-table tr:hover {
  background: #eff6ff;
}

@media (max-width: 768px) {
  .calc-cth-card { padding: 20px 15px; }
  .calc-cth-controls { grid-template-columns: 1fr; }
  .calc-cth-actions { flex-direction: column; }
  .calc-cth-btn { justify-content: center; }
}
