:root {
  --bg: #0b0d10;
  --bg2: #12161b;
  --card: #151a21;
  --line: #242c36;
  --text: #e7edf5;
  --muted: #8e9aa9;
  --brand: #4f9cf9;
  --brand2: #7fd1ff;
  --ok: #3ddc84;
  --err: #ff6b6b;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 15% -10%, #16304a 0%, transparent 55%),
              radial-gradient(900px 500px at 95% 0%, #1a2340 0%, transparent 50%),
              var(--bg);
  color: var(--text);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}
a { color: var(--brand2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: #0a0d11; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
h1 { font-size: 32px; line-height: 1.25; margin: 0 0 10px; letter-spacing: -.5px; }
h2 { font-size: 20px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 0 0 8px; }
p { margin: 8px 0; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(11,13,16,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: #000; border: 1px solid #333; position: relative; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 8px; height: 8px; background: #fff; border-radius: 2px; }
.brand-mark::before { left: 4px; top: 4px; }
.brand-mark::after { right: 4px; bottom: 4px; }
.nav { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
.who { color: var(--text); font-weight: 600; }
.main { padding: 34px 0 60px; }
.footer { padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer p { margin: 4px 0; }

.hero { padding: 46px 0 26px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand2), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip { display: inline-block; font-size: 12px; color: var(--brand2); border: 1px solid #2a4a6e; background: #0f1e2e; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.lead { color: #b7c3d1; font-size: 17px; max-width: 720px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 26px; }
.stats { display: flex; gap: 30px; flex-wrap: wrap; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 26px; }
.stats span { color: var(--muted); font-size: 13px; }

.card { background: linear-gradient(180deg, rgba(255,255,255,.02), transparent), var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 18px; }
.grid3 .card { margin: 0; }
.grid3 p { color: var(--muted); font-size: 14px; margin: 0; }
.steps { margin: 0; padding-left: 20px; color: #c4cfdb; }
.steps li { margin: 8px 0; }
.notice { border: 1px solid #4a3a1d; background: #1d1810; border-radius: var(--radius); padding: 20px 22px; }
.notice h3 { color: #ffcc80; }
.notice p { color: #cdbda3; font-size: 14px; margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #2f6fb8; background: linear-gradient(180deg, #4f9cf9, #2f7ad6); color: #fff; font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 10px; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: #3a4655; background: #1a2029; }
.btn.danger { background: #3a1b1f; border-color: #6b2a31; color: #ff9a9a; }
.btn.lg { padding: 13px 24px; font-size: 16px; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.xs { padding: 3px 9px; font-size: 12px; border-radius: 7px; }

.auth { display: flex; justify-content: center; padding: 30px 0; }
.auth .card { width: min(460px, 100%); }
form label { display: block; margin: 14px 0; font-size: 14px; color: #b9c5d2; }
input[type=text], input[type=password], input[type=url], select { width: 100%; margin-top: 6px; background: #0c1014; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 12px; font: inherit; }
input:focus, select:focus { outline: none; border-color: #3f7fc0; box-shadow: 0 0 0 3px rgba(79,156,249,.14); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0 16px; }
.inline-form .grow { flex: 1 1 240px; }
.inline-form input, .inline-form select { margin-top: 0; width: auto; }
.inline-form .grow input { width: 100%; }
.disclaimer-box { border: 1px solid var(--line); background: #0e1217; border-radius: 10px; padding: 12px 14px; margin: 16px 0; }
.disclaimer-box p { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.check { display: flex; gap: 8px; align-items: flex-start; color: var(--text) !important; }
.check input { margin-top: 4px; }

.flash { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.flash.ok { background: #0f2118; border-color: #205c3c; color: #8ee6b4; }
.flash.err { background: #251114; border-color: #6b2a31; color: #ff9a9a; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 18px; }
.page-head h1 { margin: 0; font-size: 26px; }
.muted { color: var(--muted); }
.sm { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.break { word-break: break-all; }
.empty { color: var(--muted); }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid; }
.tag.on { color: #8ee6b4; border-color: #205c3c; background: #0f2118; }
.tag.off { color: #ff9a9a; border-color: #6b2a31; background: #251114; }
.tag.admin { color: #ffd48a; border-color: #6b5320; background: #241d0f; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:hover { background: rgba(255,255,255,.02); }
.ops { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.ops form { margin: 0; }
details summary { cursor: pointer; list-style: none; }
details[open] summary { margin-bottom: 6px; }
details .inline-form { margin: 4px 0 0; }

@media (max-width: 640px) {
  .nav { gap: 10px; }
  .nav .who { display: none; }
  h1 { font-size: 26px; }
  .hero { padding-top: 26px; }
}
