/* Neutral dark theme. Adjust the variables to match ghostwater.net. */
:root {
  --bg: #0f1419;
  --panel: #171e26;
  --text: #d8dee6;
  --muted: #8a96a3;
  --accent: #5fb3b3;
  --error: #e06c75;
  --ok: #98c379;
  --border: #2a3440;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
main { max-width: 40rem; margin: 3rem auto; padding: 0 1.25rem; }
h1 { font-size: 1.5rem; margin: 0 0 0.5rem; }
code { background: var(--panel); padding: 0.1em 0.35em; border-radius: 4px; }
.where { color: var(--muted); margin-top: 0; }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 12rem; padding: 1.5rem; margin: 1.5rem 0 1rem;
  background: var(--panel); border: 2px dashed var(--border); border-radius: 10px;
  text-align: center; cursor: pointer; transition: border-color 0.15s;
}
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--accent); outline: none; }
.drop.busy, .drop.done { cursor: default; opacity: 0.85; }
.drop img { max-width: 100%; max-height: 16rem; border-radius: 6px; }
progress { width: 100%; height: 0.6rem; accent-color: var(--accent); }
.status { min-height: 1.5em; margin: 0.5rem 0; }
.status.error { color: var(--error); }
.status.ok { color: var(--ok); }
.result {
  display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem;
}
.result a { color: var(--accent); word-break: break-all; flex: 1; }
button {
  background: var(--accent); color: var(--bg); border: 0; border-radius: 6px;
  padding: 0.45rem 0.9rem; font: inherit; font-weight: 600; cursor: pointer;
}
.fine { color: var(--muted); font-size: 0.875rem; margin-top: 1.5rem; }
[hidden] { display: none !important; }
