@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/static/GoogleSans.woff2) format("woff2");
}
:root, :root[data-theme="dark"] {
  --bg: #08090b;
  --panel: #0e1014;
  --panel-2: #13161b;
  --ink: #eef1f6;
  --dim: #7d8494;
  --faint: #363b45;
  --line: #1c2027;
  --accent: #7df9ff;
  --accent-rgb: 125, 249, 255;
  --accent-ink: #08090b;
  --nav-ink: #c9ceda;
  --header-bg: rgba(13, 15, 19, 0.9);
  --stars-rgb: 125, 249, 255;
  --good: #7dffb2;
  --bad: #ff6b81;
  --warn: #ffd166;
  --sans: "Google Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 10px;
  color-scheme: dark;
}
:root[data-theme="soft"] {
  --bg: #15181e;
  --panel: #1c2027;
  --panel-2: #242933;
  --ink: #e8ebf1;
  --dim: #8e96a6;
  --faint: #4d5563;
  --line: #2b313c;
  --accent: #7df9ff;
  --accent-rgb: 125, 249, 255;
  --accent-ink: #0d1014;
  --nav-ink: #d3d8e2;
  --header-bg: rgba(21, 24, 30, 0.9);
  --stars-rgb: 125, 249, 255;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --panel-2: #eef1f5;
  --ink: #14171c;
  --dim: #5b6472;
  --faint: #a3aab6;
  --line: #dfe3ea;
  --accent: #0891b2;
  --accent-rgb: 8, 145, 178;
  --accent-ink: #ffffff;
  --nav-ink: #2a2f38;
  --header-bg: rgba(244, 246, 249, 0.9);
  --stars-rgb: 8, 145, 178;
  --good: #15803d;
  --bad: #dc2626;
  --warn: #b45309;
  color-scheme: light;
}
:root { --accent-soft: rgba(var(--accent-rgb), 0.12); }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--ink);
  transition: background 0.3s ease, color 0.3s ease;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select {
  font: inherit;
  color: inherit;
}

/* ---------- layout (header mirrors cybo.dev) ---------- */
#stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
header.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 28px;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.top .brand {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
header.top .brand span { color: var(--accent); }
header.top .brand:hover { text-decoration: none; }
header.top .tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}
header.top .tabs a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
header.top .tabs a:hover { color: var(--ink); text-decoration: none; }
header.top .tabs a.on { background: var(--accent); color: var(--accent-ink); }
header.top nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
header.top nav a {
  color: var(--nav-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
header.top nav a:hover, header.top nav a:focus-visible { color: var(--accent); text-decoration: none; outline: none; }
header.top nav a.on { color: var(--accent); }
header.top nav .who { color: var(--dim); font-weight: 500; }
header.top .theme-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
header.top .theme-btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.25); }
header.top .theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main.wrap {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 32px 100px;
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }
main.narrow { max-width: 560px; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.eyebrow::before { content: "// "; color: var(--faint); }
h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
  text-wrap: balance;
}
h2 {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}
p.lead { color: var(--dim); max-width: 60ch; }
.muted { color: var(--dim); }
.faint { color: var(--faint); }
.mono { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.stack { display: grid; gap: 32px; }

/* ---------- cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.2); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.45); transform: translateY(-1px); color: var(--accent-ink); }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); box-shadow: 0 0 16px rgba(255, 107, 129, 0.2); }
.btn.small { padding: 5px 11px; font-size: 12px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; fill: currentColor; }
input[type="text"], input[type="password"], input[type="search"], select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.field { margin-bottom: 16px; }

/* ---------- chips / pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.pill.accent { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.35); }
.pill.good { color: var(--good); border-color: rgba(125, 255, 178, 0.35); }
.pill.bad { color: var(--bad); border-color: rgba(255, 107, 129, 0.35); }
.pill.warn { color: var(--warn); border-color: rgba(255, 209, 102, 0.35); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 500; background: var(--panel); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.15s ease; }
tbody tr:hover { background: rgba(var(--accent-rgb), 0.04); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .name { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* ---------- toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.good { border-color: rgba(125, 255, 178, 0.4); }
#toast.bad { border-color: rgba(255, 107, 129, 0.4); }

/* ---------- dropzone ---------- */
.drop {
  position: relative;
  border: 1px dashed var(--faint);
  border-radius: 14px;
  padding: 56px 24px;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.02), transparent);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}
.drop:hover, .drop:focus-visible { border-color: var(--dim); outline: none; }
.drop.over {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08), 0 0 40px rgba(var(--accent-rgb), 0.15) inset;
  transform: scale(1.005);
}
.drop .icon {
  width: 44px; height: 44px; margin: 0 auto 14px;
  fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.drop.over .icon, .drop:hover .icon { transform: translateY(-4px); }
.drop .big { font-size: 18px; font-weight: 600; }
.drop .sub { color: var(--dim); margin-top: 4px; font-size: 13px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.07), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.drop:hover::after { opacity: 1; }

.limits {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 12px; color: var(--dim); margin-top: 14px;
}
.limits b { color: var(--ink); font-weight: 600; }

/* ---------- upload queue ---------- */
.queue { display: grid; gap: 10px; margin-top: 24px; }
.item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  animation: rise 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.item .thumb {
  width: 40px; height: 40px; border-radius: 8px; background: var(--panel-2);
  display: grid; place-items: center; overflow: hidden; color: var(--dim); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
}
.item .thumb img, .item .thumb video { width: 100%; height: 100%; object-fit: cover; }
.item .meta { min-width: 0; }
.item .fname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .fsub { font-size: 12px; color: var(--dim); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.item .bar { height: 3px; background: var(--line); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.item .bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width 0.15s linear; box-shadow: 0 0 10px var(--accent); }
.item.done .bar i { width: 100%; background: var(--good); box-shadow: 0 0 10px var(--good); }
.item.error .bar i { width: 100%; background: var(--bad); box-shadow: none; }
.item .link { font-size: 13px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .actions { display: flex; gap: 6px; }
.item.error .fsub { color: var(--bad); }

/* ---------- stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.tile .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.tile .v { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .s { font-size: 12px; color: var(--dim); margin-top: 2px; }
.tile .v .unit { font-size: 14px; color: var(--dim); font-weight: 500; margin-left: 3px; }

/* ---------- charts ---------- */
.chart { position: relative; }
.chart svg { width: 100%; height: 180px; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--dim); font-size: 11px; }
.chart .bar { fill: var(--accent); opacity: 0.85; transition: opacity 0.15s ease; }
.chart .bar.anon { fill: var(--dim); }
.chart .bar:hover, .chart .bar.hot { opacity: 1; }
.chart .bar.last { opacity: 1; }
.chart .tip {
  position: absolute; pointer-events: none; background: var(--panel-2); border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%);
  opacity: 0; transition: opacity 0.12s ease; z-index: 5;
}
.chart .tip.show { opacity: 1; }
.chart .tip b { color: var(--ink); font-variant-numeric: tabular-nums; }
.chart .legend { display: flex; gap: 16px; font-size: 12px; color: var(--dim); margin-bottom: 10px; }
.chart .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--accent); }
.chart .legend i.anon { background: var(--dim); }
.bars { display: grid; gap: 8px; }
.bars .b { display: grid; grid-template-columns: 110px 1fr 64px; gap: 10px; align-items: center; font-size: 13px; }
.bars .b .t { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bars .b .t i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transform-origin: left; animation: grow 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes grow { from { transform: scaleX(0); } }
.bars .b .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--dim); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) {
  .grid-2 { grid-template-columns: 1fr; }
  header.top { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  header.top .tabs a { padding: 5px 10px; font-size: 12px; }
  header.top nav { gap: 12px; font-size: 12px; }
  main.wrap { padding: 110px 18px 70px; }
  .item { grid-template-columns: 40px 1fr; }
  .item .actions { grid-column: 2; }
}
.hide { display: none !important; }
code.k { background: var(--panel-2); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; font-family: Consolas, Menlo, monospace; font-size: 12px; color: var(--ink); }
pre.cmd { background: var(--panel-2); border: 1px solid var(--line); padding: 12px 14px; border-radius: 8px; font-family: Consolas, Menlo, monospace; font-size: 12px; overflow-x: auto; color: var(--ink); }

/* ---------- page footer ---------- */
.foot {
  margin-top: 72px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #9aa1b0;
  letter-spacing: 0.02em;
}
.foot a { color: var(--ink); border-bottom: 1px solid rgba(var(--accent-rgb), 0.35); }
.foot a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.foot .sep { margin: 0 8px; color: var(--faint); }
.foot .handle { color: var(--ink); }

/* ---------- paste editor & viewer ---------- */
textarea.code {
  width: 100%;
  min-height: 380px;
  resize: vertical;
  font-family: Consolas, Menlo, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  tab-size: 4;
  white-space: pre;
}
textarea.code:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.codebox {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: auto;
  max-height: 78vh;
}
.codebox pre { margin: 0; }
.codebox code.hljs {
  display: block;
  padding: 16px 18px 16px 0;
  font-family: Consolas, Menlo, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  background: transparent !important;
  counter-reset: line;
}
.codebox .ln {
  display: inline-block;
  width: 52px;
  padding-right: 14px;
  margin-right: 14px;
  text-align: right;
  color: var(--faint);
  border-right: 1px solid var(--line);
  user-select: none;
}
.codebox .l:hover { background: var(--accent-soft); }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--dim); margin-bottom: 14px; }
.meta-line b { color: var(--ink); font-weight: 600; }
.big-ip {
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(var(--accent-rgb), 0.35);
}
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 13px; }
.kv dt { color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; padding-top: 2px; }
.kv dd { margin: 0; word-break: break-all; }
