/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 2rem;
}

.header-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}

.header-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}

.header-nav a.active {
  color: var(--text);
  background: var(--surface-2);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  font-weight: 700;
  font-family: var(--mono);
}

.logo-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.2px;
}

.logo-text span {
  color: var(--text-muted);
  font-weight: 500;
}

.server-time {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.ws-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.pulse-dot.disconnected {
  background: var(--red);
}

.status-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
}

.status-label.disconnected {
  color: var(--red);
}

.nav-link-btn {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color 0.15s, border-color 0.15s;
}

.nav-link-btn:hover {
  color: var(--text);
  border-color: var(--border-hi);
  text-decoration: none;
}

/* ── Main ── */
.main-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem 2rem 3rem;
  max-width: 1440px;
  margin: 0 auto;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 1440px;
  margin: 0 auto;
}

/* ── Two-column layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .header-inner { padding: 0 1rem; }
  .header-nav { margin-left: 0.75rem; gap: 0; }
  .main-content { padding: 1rem; }
  .two-col { grid-template-columns: 1fr; }
}
