.tc-wrap {
  width: 100%;
  padding: 4px 0 28px;
  box-sizing: border-box;
}

.tc-hint {
  margin: 0 0 16px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
}

.tc-inputs,
.tc-outputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tc-col,
.tc-out {
  min-width: 0;
}

.tc-label,
.tc-out-title {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.tc-textarea {
  display: block;
  width: 100%;
  min-height: 220px;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.7;
  color: #111827;
  background: #fff;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}

.tc-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.tc-count {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
  text-align: right;
}

.tc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}

.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.4;
}

.tc-btn-primary {
  background: #10b981;
  color: #fff;
}

.tc-btn-primary:hover:not(:disabled) {
  background: #059669;
}

.tc-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tc-btn-secondary {
  background: #e5e7eb;
  color: #374151;
}

.tc-btn-secondary:hover {
  background: #d1d5db;
}

.tc-error {
  margin: 4px 0 8px;
  font-size: 14px;
  color: #dc2626;
}

.tc-result {
  margin-top: 12px;
}

.tc-rate-row {
  margin-bottom: 14px;
  font-size: 16px;
  color: #111827;
}

.tc-rate-row b {
  font-size: 22px;
  color: #ea580c;
}

.tc-view {
  min-height: 160px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.8;
  color: #111827;
  background: #fafafa;
  word-break: break-word;
  white-space: pre-wrap;
}

.tc-view mark {
  padding: 0 1px;
  border-radius: 2px;
  color: inherit;
}

.tc-intro {
  margin-top: 32px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.tc-intro h2 {
  margin: 20px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.tc-intro h3 {
  margin: 14px 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.tc-intro p,
.tc-intro li {
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
}

.tc-intro ul {
  margin: 0 0 8px 1.2em;
  padding: 0;
}

@media (max-width: 768px) {
  .tc-inputs,
  .tc-outputs {
    grid-template-columns: 1fr;
  }
}
