textarea {
  width: 100%;
  height: 160px;
  padding: 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: "Cascadia Code", "Consolas", "Monaco", monospace;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  line-height: 1.5;
}
textarea:focus { border-color: var(--blue); }
textarea[readonly] { cursor: default; }

.btn-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}

.output-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.output-label-row label { margin-bottom: 0; }
.copy-btn {
  padding: 0.3rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-sub);
  font-size: 0.78rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover { border-color: var(--blue); color: var(--blue); }

.error-msg {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  font-size: 0.82rem;
  color: #991b1b;
  margin: 0.5rem 0;
}

.section-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.9rem;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 0.75rem;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--blue);
  background: #eff6ff;
}
.drop-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.drop-text { font-size: 0.9rem; color: var(--text-sub); line-height: 1.6; }
.drop-text small { font-size: 0.78rem; }

.file-info {
  font-size: 0.82rem;
  color: var(--text-sub);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

html[data-theme="dark"] textarea,
html[data-theme="dark"] input[type="text"] { background: #0f172a; }
html[data-theme="dark"] .drop-zone:hover,
html[data-theme="dark"] .drop-zone.drag-over { background: #1e3a5f; }
html[data-theme="dark"] .error-msg { background: #450a0a; border-color: #7f1d1d; color: #fca5a5; }

@media (max-width: 480px) {
  .btn-row { gap: 0.4rem; }
  .btn { font-size: 0.82rem; padding: 0.5rem 0.8rem; }
}
