:root {
  --bg: #101820;
  --panel: #161e2a;
  --line: #27313f;
  --text: #e8e8ea;
  --muted: #a0a8b4;
  --accent: #40e0ff;
  --violet: #9b6dff;
  --gold: #ffc857;
  --err: #ff8a80;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
main { max-width: 42em; margin: 0 auto; padding: 16px; }
header { margin: 8px 0 16px; }
h1 { margin: 0; font-size: 28px; color: var(--accent); letter-spacing: 0.04em; }
h2 { margin: 0 0 8px; font-size: 20px; color: var(--gold); }
.sub { margin: 0; color: var(--muted); }
.note { color: var(--muted); font-size: 15px; }
.err { color: var(--err); }
.ok { color: var(--accent); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
}
label { display: block; margin: 10px 0 4px; color: var(--muted); }
input[type="text"], input[type="password"], input:not([type]), input[type="time"], select {
  width: 100%;
  font-size: 17px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #000;
  color: var(--text);
}
input[type="range"] { width: 100%; }
.row { display: flex; gap: 12px; }
.row > label { flex: 1; }
.row.five { flex-wrap: wrap; }
.row.five input { flex: 1 1 30%; }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; }
legend { color: var(--muted); padding: 0 6px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--text); }
.check input { width: 22px; height: 22px; margin: 0; }
button {
  font-size: 17px;
  padding: 12px 18px;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  cursor: pointer;
}
button.secondary { background: var(--line); color: var(--text); }
button.danger { background: var(--violet); color: #000; }
button.link { background: none; color: var(--muted); text-decoration: underline; padding: 0; margin: 0; font-weight: 400; }
.list { list-style: none; padding: 0; margin: 0; }
.list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.list li:first-child { border-top: 0; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 26px; letter-spacing: 0.18em; color: var(--gold); }
.meta { color: var(--muted); font-size: 15px; }
.win { color: var(--accent); }
.loss { color: var(--violet); }
footer { margin: 24px 0 8px; font-size: 13px; }
code { color: var(--accent); }
