:root {
  --bg: #000;
  --panel: rgba(255, 255, 255, 0.03);
  --line: rgba(255, 255, 255, 0.08);
  --text: #fff;
  --muted: #71717a;
  --accent: #00ff88;
  --ok: #00ff88;
  --warn: #f5a623;
  --err: #ff5c5c;
}
* { box-sizing: border-box; }
body.site {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(rgba(0, 255, 136, 0.14) 1px, transparent 1px) 0 0 / 24px 24px,
    #000;
  color: var(--text);
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.011em;
  color-scheme: dark;
}
body.site a { color: var(--accent); text-decoration: none; }
body.site a:hover { text-decoration: none; }

.top {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1100px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 8px 14px 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}
body.site .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 18px;
}
.brand img { width: 40px; height: 40px; object-fit: contain; display: block; }
.top nav { display: flex; gap: 18px; flex: 1; }
.top nav a {
  color: #71717a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.top nav a:hover, .top nav a.on { color: #fff; }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; color: #a1a1aa; font-size: 13px; }
.who img { width: 28px; height: 28px; border-radius: 50%; }
body.site .who a { color: #71717a; font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
body.site .who a:hover { color: #fff; }

main { max-width: 1100px; margin: 0 auto; padding: 28px 24px 64px; }
h1 { margin: 0 0 6px; font-size: 32px; font-weight: 800; letter-spacing: -0.045em; color: #fff; }
h2 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.sub { color: var(--muted); margin: 0 0 24px; }
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 22px; }
.table-wrap { border: 1px solid var(--line); border-radius: 16px; overflow: auto; background: rgba(255, 255, 255, 0.03); }
table { width: 100%; border-collapse: collapse; background: transparent; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }
th { color: #71717a; font-weight: 800; font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: rgba(255, 255, 255, 0.03); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: #555; }
.badge.open i { background: var(--accent); }
.badge.closed i { background: #555; }
.badge.closing i { background: var(--warn); }
body.site .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  background: var(--accent);
  color: #000;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}
body.site .btn:hover { background: #5dffb1; color: #000; }
body.site .btn.sec { background: rgba(255, 255, 255, 0.03); color: #fff; border: 1px solid rgba(255, 255, 255, 0.1); }
body.site .btn.sec:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
body.site .btn.danger { background: transparent; color: var(--err); border: 1px solid rgba(255, 92, 92, 0.45); }
body.site .btn.danger:hover { background: rgba(255, 92, 92, 0.08); color: var(--err); }
body.site .btn.ok { background: var(--accent); color: #000; }
body.site .btn:disabled { opacity: .45; cursor: not-allowed; }
input, select {
  background: #000;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0 12px;
  height: 40px;
  font: inherit;
}
input:focus, select:focus { outline: none; border-color: rgba(0, 255, 136, 0.55); }
.bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 18px; align-items: center; color: var(--muted); }
.muted { color: var(--muted); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.frame { width: 100%; height: calc(100vh - 220px); border: 1px solid var(--line); border-radius: 16px; background: #111; }
.meta { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.meta b { color: var(--text); font-weight: 600; }
.toast { position: fixed; bottom: 22px; right: 22px; padding: 12px 18px; border-radius: 12px; background: #111; border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; display: none; z-index: 20; max-width: 420px; }
.toast.err { border-color: var(--err); }
.toast.ok { border-color: var(--accent); }
.ebar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 16px 16px 0 0; }
.eframe { width: 100%; height: calc(100vh - 220px); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; background: #000; display: block; }
code { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 12px; }

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(ellipse at center, rgba(0, 255, 136, 0.1), transparent 55%),
    radial-gradient(rgba(0, 255, 136, 0.18) 1px, transparent 1px) 0 0 / 24px 24px;
}
.gate-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
  padding: 36px 28px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}
.gate-card .mark img { width: 72px; height: 72px; object-fit: contain; }
.gate-card .eyebrow {
  margin: 8px 0 0;
  color: #71717a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.gate-card h1 { margin-top: 10px; font-size: 28px; font-weight: 800; }
.gate-card .sub { margin-bottom: 22px; }
.gate-card .btn { width: 100%; height: 44px; }
.fine { margin: 16px 0 0; color: #52525b; font-size: 12px; }

@media (max-width: 720px) {
  .top { top: 8px; width: calc(100% - 16px); }
  main { padding: 20px 16px 48px; }
  h1 { font-size: 26px; }
}
