:root { color-scheme: light dark; --accent: #5865F2; --border: #ccc; --muted: #666; }
* { box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  line-height: 1.6;
}
nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
nav a { color: inherit; text-decoration: none; font-weight: 600; }
nav a:hover { color: var(--accent); }
nav .spacer { flex: 1; }
nav .user { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
a { color: var(--accent); }
h1 { margin-bottom: 0.25rem; }
.muted { color: var(--muted); }
.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.card h3 { margin: 0 0 0.25rem; }
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-left: 0.4rem;
}
.badge.pro { color: #b8860b; border-color: #b8860b; }
.badge.pending { color: var(--muted); }
form.inline { display: inline; }
label { display: block; font-weight: 600; margin-top: 1rem; margin-bottom: 0.25rem; }
label .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
input[type=text], input[type=number], input[type=url], textarea, select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: transparent;
  color: inherit;
}
textarea { resize: vertical; }
/* The closed <select> box inherits the page's own dark styling fine, but its dropdown popup is
   rendered natively by the OS/browser. System color keywords (Canvas/CanvasText) were tried
   first and didn't take, Chromium's native popup on Windows largely ignores them, so this uses
   literal colors instead, which browsers actually honor for option rows. Trade-off: the popup
   stays dark even if the page is ever viewed in light mode, better than the popup being
   unreadable, which is what happened without this. */
select, option { background-color: #1e1e1e; color: #eee; }
button, .button {
  font: inherit;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.secondary, .button.secondary { background: transparent; color: inherit; border-color: var(--border); }
button.danger, .button.danger { background: transparent; color: #c0392b; border-color: #c0392b; }
.answer-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.answer-row input[type=text] { flex: 1; }
.locked { opacity: 0.5; }
.locked input, .locked textarea { pointer-events: none; }
.flash { background: rgba(88,101,242,0.1); border: 1px solid var(--accent); border-radius: 6px; padding: 0.75rem 1rem; margin-bottom: 1rem; }
