body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 1.5rem;
  background: #f7f7f7;
  color: #222;
}

.app {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.language {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  align-items: center;
}

label {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-weight: 600;
}

textarea, select, button {
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
}

textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  min-height: 120px;
}

.controls {
  margin-top: 0.5rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
}

button {
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #0052cc;
  color: #fff;
  font-weight: 600;
}

button:disabled {
  background: #999;
  cursor: not-allowed;
}

#status {
  min-height: 1.25rem;
  font-weight: 600;
}

.hint, .install-help {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.install-help {
  margin-top: 0.25rem;
}

/* 檔案上傳區 */
.upload-area {
  margin: 0.75rem 0 0.5rem;
  padding: 0.85rem 1rem;
  border: 2px dashed #ccc;
  border-radius: 8px;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}

.upload-area.drag-over {
  border-color: #0052cc;
  background: #e8f0ff;
}

.upload-area label {
  margin: 0 0 0.4rem;
  font-weight: 600;
  cursor: pointer;
}

.upload-area input[type="file"] {
  display: block;
  margin-top: 0.4rem;
  cursor: pointer;
  font-size: 0.95rem;
  width: auto;
}

.upload-hint {
  font-size: 0.85rem;
  color: #666;
  margin: 0.35rem 0 0;
  line-height: 1.4;
}
