:root {
  --bg: #0a0b0c;
  --panel: #121418;
  --ink: #e5e7eb;
  --muted: #8b949e;
  --accent: #d4a65a;
  --line: #2d3139;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-items: center;
  padding: 14px 24px;
  background: rgba(10, 11, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  letter-spacing: 1px;
}

nav {
  display: flex;
  gap: 10px;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
}

.nav-link.active {
  color: #121418;
  background: var(--accent);
  border-color: var(--accent);
}

.container {
  padding: 20px;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

h1,
h2 {
  margin: 0 0 10px;
}

p {
  margin: 8px 0;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  align-items: center;
  margin: 8px 0;
}

.row-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

input,
select,
textarea,
button {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: #1a1d24;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

button {
  cursor: pointer;
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 600;
}

button.secondary {
  background: #21252d;
  color: var(--ink);
  border-color: #3d4450;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.codebox {
  background: #050607;
  color: #a3b3cc;
  border-radius: 10px;
  padding: 12px;
  min-height: 80px;
  overflow: auto;
  border: 1px solid var(--line);
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.action-row {
  display: flex;
  gap: 8px;
}

.action-row button {
  width: auto;
  padding: 5px 10px;
  font-size: 12px;
}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}