:root {
  /* Dark mode by default, aligned to Turnstile widget tones */
  --bg: #2f3133;
  --surface: #202225;
  --text: #f3f4f6;
  --muted: #c8cdd4;
  --border: #3a3d41;
  --primary: #f38020; /* Cloudflare orange */
  --primary-text: #111111;
  --secondary: #3b3f46;
  --secondary-text: #f3f4f6;
  --danger: #ff5c5c;
  --success: #35c46a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 0% 0%, #3a3d41 0, var(--bg) 55%);
}
.app { max-width: 860px; margin: 24px auto; padding: 0 16px; }
.header { display: flex; justify-content: space-between; align-items: center; }
.card { background: var(--surface); border-radius: 12px; padding: 16px; margin-top: 16px; border: 1px solid var(--border); }
.dropzone {
  border: 2px dashed #6b7280;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: pointer;
}
.dropzone:focus-visible { outline: 3px solid rgba(243, 128, 32, 0.55); outline-offset: 2px; }
.controls, .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.turnstile-wrap { margin-top: 16px; }
button, .button {
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--primary);
  color: var(--primary-text);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  appearance: none;
}
button:hover:not([disabled]),
.button:hover {
  filter: brightness(1.04);
}
button[disabled] { opacity: 0.45; cursor: not-allowed; }
#clear-btn,
#copy-link-btn,
#job-details-btn {
  background: var(--secondary);
  color: var(--secondary-text);
}
#clear-btn:hover:not([disabled]),
#copy-link-btn:hover:not([disabled]),
#job-details-btn:hover:not([disabled]) {
  filter: brightness(1.08);
}
.badge { font-size: 13px; color: #e5e7eb; background: #3a3d41; border-radius: 999px; padding: 4px 10px; text-transform: uppercase; border: 1px solid var(--border); }
.message { min-height: 20px; }
.message.error { color: var(--danger); }
.message.success { color: var(--success); }
.meta { color: var(--muted); font-size: 13px; }
.details {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  overflow: auto;
  max-height: 320px;
  font-size: 13px;
  line-height: 1.4;
}
select, input[type="checkbox"] {
  accent-color: var(--primary);
}
select {
  background: #17181b;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
@media (max-width: 640px) {
  .app { margin-top: 12px; }
  .dropzone { padding: 20px; }
  button, .button { min-height: 44px; }
}
