/* Layout */
.tn-wrap {
  display: grid;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Form */
.tn-form {
  display: grid;
  gap: 10px;
}

.tn-label {
  font-weight: 600;
}

.tn-textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font: inherit;
  line-height: 1.4;
  resize: vertical;
}

.tn-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tn-btn,
.tn-copy-btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: #111827;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform .02s ease-in-out, opacity .15s ease-in-out, box-shadow .15s;
  box-shadow: 0 2px 0 rgba(0,0,0,.12);
}

.tn-btn:disabled,
.tn-copy-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.tn-btn:active,
.tn-copy-btn:active {
  transform: translateY(1px);
}

.tn-status {
  font-size: 0.95rem;
  color: #374151;
}

/* Output card */
.tn-output-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: clip;
  background: #ffffff;
}

.tn-output-card[aria-busy="true"] {
  outline: 2px dashed #cbd5e1;
  outline-offset: -2px;
}

.tn-output-toolbar {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.tn-output-title {
  font-weight: 600;
  color: #111827;
}

.tn-output {
  margin: 0;
  padding: 14px;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
  background: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
}
