:root {
  --bg0: #0b0e14;
  --bg1: #101724;
  --panel: rgba(255, 255, 255, 0.06);
  --panel2: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --ink: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.65);
  --faint: rgba(255, 255, 255, 0.38);
  --accent: #39d98a;
  --accent2: #ffcc66;
  --danger: #ff5c7a;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius-sm: 12px;
  --font-sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  --font-serif: "Fraunces", ui-serif, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  background:
    radial-gradient(1100px 800px at 20% 15%, rgba(57, 217, 138, 0.22) 0%, rgba(57, 217, 138, 0) 55%),
    radial-gradient(900px 650px at 82% 28%, rgba(255, 204, 102, 0.18) 0%, rgba(255, 204, 102, 0) 58%),
    radial-gradient(900px 700px at 52% 92%, rgba(86, 132, 255, 0.16) 0%, rgba(86, 132, 255, 0) 62%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, rgba(255, 255, 255, 0) 1px);
  background-size: 18px 18px;
  opacity: 0.18;
  mix-blend-mode: overlay;
}

.noscript {
  max-width: 760px;
  margin: 64px auto;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  box-shadow: var(--shadow);
  position: sticky;
  top: 14px;
  z-index: 5;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  user-select: none;
}

.brand h1 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 0;
  letter-spacing: 0.02em;
}

.brand .tag {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
}

.statusline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}

.dot.ok {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(57, 217, 138, 0.18);
}

.grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.panel .hd {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel .hd h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel .bd {
  padding: 14px 16px 16px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav button {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.26);
}

.nav button.active {
  border-color: rgba(57, 217, 138, 0.55);
  background: rgba(57, 217, 138, 0.14);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.26);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.24);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.33);
}

.btn.primary {
  border-color: rgba(57, 217, 138, 0.45);
  background: rgba(57, 217, 138, 0.14);
}

.btn.danger {
  border-color: rgba(255, 92, 122, 0.55);
  background: rgba(255, 92, 122, 0.14);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
}

.pill strong {
  color: var(--ink);
  font-weight: 650;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 8px;
  font-size: 13px;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 650;
  letter-spacing: 0.02em;
  text-align: left;
}

.click {
  color: var(--accent2);
  cursor: pointer;
  text-decoration: none;
}

.click:hover {
  text-decoration: underline;
}

.flash {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
}

.flash.error {
  border-color: rgba(255, 92, 122, 0.45);
  background: rgba(255, 92, 122, 0.12);
}

.flash.ok {
  border-color: rgba(57, 217, 138, 0.35);
  background: rgba(57, 217, 138, 0.12);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: rise 260ms ease both;
}

@media (max-width: 960px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    position: static;
  }
}

