:root {
  --bg: #0b0d10; --panel: #13171c; --panel-2: #1a1f26; --line: #262d36;
  --text: #e6e9ee; --muted: #8b95a3; --accent: #1e9bff; --accent-2: #00d1ff;
  --ok: #2ecc71; --warn: #f5a623; --bad: #ff5468; --radius: 8px;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif; font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
header.top { display: flex; align-items: center; gap: 24px; padding: 0 20px; height: 56px;
  background: linear-gradient(90deg, #050608, #10161e); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; letter-spacing: .5px; color: #fff; display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; }
.hero-logo { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 8px; }
ul, ol { padding-left: 20px; } li { margin: 3px 0; }
header.top { height: 60px; }
.brand small { color: var(--muted); font-weight: 400; }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: var(--muted); padding: 8px 12px; border-radius: 6px; }
nav a:hover, nav a.on { color: #fff; background: var(--panel-2); text-decoration: none; }
.who { margin-left: auto; color: var(--muted); }
main { padding: 24px; max-width: 1280px; margin: 0 auto; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 16px; margin: 0 0 12px; color: #cfd6df; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font-size: 24px; color: #fff; }
.stat span { color: var(--muted); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
tr:hover td { background: #161b21; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--panel-2); color: var(--muted); }
.badge.ready, .badge.done, .badge.active { color: var(--ok); background: rgba(46,204,113,.12); }
.badge.processing, .badge.running, .badge.queued, .badge.uploading { color: var(--warn); background: rgba(245,166,35,.12); }
.badge.failed, .badge.revoked, .badge.disabled { color: var(--bad); background: rgba(255,84,104,.12); }
form.inline { display: inline; }
label { display: block; color: var(--muted); margin: 10px 0 4px; font-size: 12px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=file], select, textarea {
  width: 100%; padding: 8px 10px; background: #0e1216; color: var(--text); border: 1px solid var(--line); border-radius: 6px; }
textarea { min-height: 70px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1; min-width: 160px; }
button, .btn { display: inline-block; padding: 8px 14px; border-radius: 6px; border: 1px solid var(--accent);
  background: var(--accent); color: #fff; cursor: pointer; font-weight: 600; font-size: 13px; }
button.secondary, .btn.secondary { background: transparent; color: var(--accent-2); border-color: var(--line); }
button.danger { background: transparent; color: var(--bad); border-color: rgba(255,84,104,.4); }
button:hover { filter: brightness(1.1); }
.flash { background: rgba(30,155,255,.12); border: 1px solid rgba(30,155,255,.4); padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.secret { background: #071a0f; border: 1px solid var(--ok); padding: 14px; border-radius: 6px; margin-bottom: 16px; }
code, .mono { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; }
.copy { display: flex; gap: 8px; margin-bottom: 8px; }
.copy input { flex: 1; width: 100%; font-family: Consolas, monospace; font-size: 12px; }
.muted { color: var(--muted); }
#map { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); background: #0e1216; }
.bar { height: 8px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.chart { display: flex; align-items: end; gap: 4px; height: 120px; }
.chart div { flex: 1; background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.chart div:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: #000; padding: 4px 6px; border-radius: 4px; white-space: nowrap; font-size: 11px; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 30px; text-align: center; color: var(--muted); }
.dropzone.over { border-color: var(--accent); color: #fff; }
.err { color: var(--bad); }
