*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--accent);
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

.nav-brand {
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
  padding: 14px 16px 14px 0;
  border-right: 1px solid var(--border);
  margin-right: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

nav a {
  display: block;
  padding: 14px 12px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s;
}

nav a:hover {
  color: var(--accent);
}

nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.nav-right {
  margin-left: auto;
  padding-left: 16px;
  flex-shrink: 0;
}

.dark-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.15s, color 0.15s;
}

.dark-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.header {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.header-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 12px;
}

.header h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--accent);
}

.header-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 480px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-wrap {
  margin-bottom: 40px;
}

.console-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.console-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
  gap: 16px;
}

.console-row:last-child {
  border-bottom: none;
}

.console-row:hover {
  background: var(--hover-bg);
}

.console-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.console-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  letter-spacing: -0.3px;
  text-align: center;
  line-height: 1.2;
}

.console-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.console-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.console-meta {
  font-size: 11px;
  color: var(--muted2);
}

.console-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.console-formats {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fmt-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--tag-bg);
  color: var(--tag-color);
}

.console-arrow {
  font-size: 14px;
  color: var(--muted2);
  flex-shrink: 0;
  transition: color 0.12s;
}

.console-row:hover .console-arrow {
  color: var(--accent);
}

@media (max-width: 580px) {
  .console-formats {
    display: none;
  }

  .header h1 {
    font-size: 24px;
  }
}