:root {
  --ink: #14161a;
  --muted: #5b6270;
  --panel: #ffffff;
  --line: #d9dde4;
  --accent: #14161a;
  --accent-ink: #ffffff;
  --danger: #b3261e;
  --code-bg: #f3f5f8;
  --bg1: #f6c453;
  --bg2: #9b5de5;
  --bg3: #2f80ed;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eceef2;
    --muted: #a3aab8;
    --panel: #1b1e25;
    --line: #353a46;
    --accent: #eceef2;
    --accent-ink: #14161a;
    --danger: #ff8a80;
    --code-bg: #242832;
    --bg1: #3a2f12;
    --bg2: #2c1d4a;
    --bg3: #112a4d;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg2);
  background: linear-gradient(160deg, var(--bg1), var(--bg2) 55%, var(--bg3)) fixed;
  min-height: 100vh;
}
.shell { max-width: 880px; margin: 0 auto; padding: 24px 16px 40px; }
.panel { background: var(--panel); border-radius: 14px; padding: 20px 28px 28px; box-shadow: 0 10px 40px rgba(0, 0, 0, .18); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; }
.mark { width: 22px; height: 22px; border-radius: 50%; border: 5px solid #2f80ed; border-right-color: #9b5de5; }
nav a { margin-left: 18px; font-size: 14px; }
a { color: var(--ink); }
h1 { font-size: 2rem; font-weight: 500; margin: 0 0 12px; line-height: 1.2; }
h2 { font-size: 1.25rem; font-weight: 500; margin: 28px 0 8px; }
h3 { font-size: 1rem; margin: 20px 0 6px; }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.divided { border-left: 1px solid var(--line); padding-left: 28px; }
.divided h2 { margin-top: 0; font-size: 1.5rem; font-weight: 300; }
.btn, button {
  display: inline-block; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 6px; padding: 9px 18px; text-decoration: none;
}
button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button.danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }
button:disabled { opacity: .5; cursor: default; }
input, select {
  font: inherit; width: 100%; padding: 9px 10px; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 6px;
}
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
form { max-width: 380px; }
form .btn, form button { margin-top: 16px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
td, th { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
code, pre { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--code-bg); border-radius: 4px; }
code { padding: 1px 5px; }
pre { padding: 12px 14px; overflow-x: auto; white-space: pre; }
pre.wrap { white-space: pre-wrap; word-break: break-all; }
.note, .muted { color: var(--muted); font-size: 14px; }
.error { color: var(--danger); font-size: 14px; min-height: 1.2em; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 12px 0; }
.card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card h3 { margin: 0; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.row > select { flex: 1 1 200px; width: auto; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; font-size: 14px; font-weight: 600; }
.foot a { color: #fff; text-decoration: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
@media (max-width: 640px) {
  .cols { grid-template-columns: 1fr; }
  .divided { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .panel { padding: 16px; }
}
