:root {
  color-scheme: light;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #f5f5f5;
  color: #1c1c1c;
}

h1 {
  margin-top: 0;
  color: #333;
}

.card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.info {
  margin: 16px 0;
}

.label {
  color: #666;
  font-size: 14px;
}

.value {
  font-family: monospace;
  font-size: 16px;
  color: #111;
}

.status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 500;
}

.status.ok {
  background: #d4edda;
  color: #155724;
}

.status.error {
  background: #f8d7da;
  color: #721c24;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

label {
  font-size: 14px;
  color: #444;
  margin-bottom: 4px;
}

input[type='file'],
input[type='text'],
select,
textarea {
  font: inherit;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button {
  font: inherit;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 16px;
  cursor: pointer;
  margin-top: 4px;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 6px;
  max-height: 260px;
  overflow: auto;
  font-size: 13px;
}

.output {
  margin-top: 12px;
}

.small {
  font-size: 13px;
  color: #555;
}

.small.warning {
  color: #b45309;
  margin-top: 4px;
}
#translateOutput a, #overlayOutput a {
  color: white;
}