:root {
  --bg: #0c1016;
  --bg-raise: #141a22;
  --ink: #e7edf4;
  --muted: #93a0ae;
  --card: #171e28;
  --line: #2a3442;
  --accent: #2fbf8f;
  --accent-ink: #042018;
  --red: #ffb4c0;
  --red-bg: #3a1822;
  --amber: #f0c27a;
  --amber-bg: #3a2c14;
  --ok: #8ee7c3;
  --ok-bg: #12352c;
  --paused: #c5d2e4;
  --paused-bg: #1c2736;
  --info-bg: #13262a;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
  font-family: "Segoe UI", "Liberation Sans", "Noto Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(47, 191, 143, 0.12), transparent 55%),
    var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.demo-bar {
  background: #10241d;
  color: var(--ok);
  text-align: center;
  padding: 9px 16px;
  font-size: 14px;
  border-bottom: 1px solid #1d4a3a;
}
.top {
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  padding: 16px 0 10px;
}
.brand { display: flex; flex-direction: column; gap: 2px; min-width: 180px; }
.brand strong { font-size: 20px; letter-spacing: -0.03em; }
.brand span { color: var(--muted); font-size: 13px; }
nav { display: flex; flex-wrap: wrap; gap: 6px; }
nav a, .btn, .btn-ghost, .btn-danger {
  border-radius: 999px; padding: 8px 14px; text-decoration: none; border: 1px solid transparent;
}
nav a { color: var(--ink); background: transparent; }
nav a.active, nav a:hover { background: var(--bg-raise); border-color: var(--line); }
.btn { background: var(--accent); color: var(--accent-ink); border: 0; font-weight: 600; }
.btn:hover { filter: brightness(1.05); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }
.btn-ghost { background: var(--bg-raise); border: 1px solid var(--line); color: var(--ink); }
.btn-danger { background: transparent; color: var(--red); border: 1px solid #6a3140; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
input, select {
  border: 1px solid var(--line); background: #0e141c; border-radius: 12px; padding: 10px 12px;
}
.hint { color: var(--muted); font-size: 13px; line-height: 1.4; font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.03em; }
h2 { font-size: 18px; margin: 0 0 8px; }
.banner { border-radius: 14px; padding: 12px 14px; line-height: 1.45; }
.banner.warn { background: var(--amber-bg); color: var(--amber); }
.banner.bad { background: var(--red-bg); color: var(--red); }
.banner.ok { background: var(--ok-bg); color: var(--ok); }
.banner.info { background: var(--info-bg); color: var(--ink); border: 1px solid #244048; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  padding: 3px 9px; font-size: 12px; background: #243041; color: var(--ink); white-space: nowrap;
}
.chip.bad { background: var(--red-bg); color: var(--red); }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.run, .chip.pay { background: var(--amber-bg); color: var(--amber); }
.chip.paused { background: var(--paused-bg); color: var(--paused); }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.step { padding: 6px 10px; border-radius: 999px; background: #222b38; color: var(--muted); font-size: 13px; }
.step.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.login-card { max-width: 440px; margin: 12vh auto; }
.prose { padding: 28px 0 64px; line-height: 1.55; }
.prose h2 { margin-top: 22px; }
.kvs { display: flex; gap: 16px; flex-wrap: wrap; }
.kvs div { min-width: 140px; }
.kvs b { display: block; font-size: 15px; margin-top: 2px; }
.check { flex-direction: row; align-items: flex-start; gap: 8px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
details { margin-top: 6px; }
summary { cursor: pointer; color: var(--accent); }
code, .mono, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }
pre { white-space: pre-wrap; background: #0e141c; padding: 10px; border-radius: 10px; }
footer.note { color: var(--muted); font-size: 13px; padding: 8px 0 28px; }
.empty { color: var(--muted); margin: 0; }

.tour-root { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.tour-catcher { position: absolute; inset: 0; pointer-events: auto; background: transparent; }
.tour-hole {
  position: absolute; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 200vmax rgba(4, 7, 12, 0.78);
  border: 2px solid var(--accent);
}
.tour-card {
  position: absolute; z-index: 2; width: min(380px, calc(100vw - 24px));
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; box-shadow: var(--shadow); pointer-events: auto;
}
.tour-card h2 { margin-top: 4px; }
.tour-card p { margin: 0 0 12px; line-height: 1.45; }

@media (max-width: 860px) {
  .top { flex-direction: column; align-items: stretch; }
  h1 { font-size: 24px; }
  .login-card { margin-top: 32px; }
}
