:root {
  --bg: #eef3f8;
  --grid: rgba(37, 99, 235, 0.035);
  --shell: #ffffff;
  --dark: #151d2d;
  --dark-2: #1f293b;
  --dark-3: #111827;
  --line: rgba(255, 255, 255, 0.08);
  --line-light: #dbe5ef;
  --text: #f8fafc;
  --muted: #9ca3af;
  --muted-light: #64748b;
  --blue: #2563eb;
  --green: #86efac;
  --green-bg: rgba(34, 197, 94, 0.16);
  --amber: #fbbf24;
  --amber-bg: rgba(251, 191, 36, 0.13);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.07), transparent 26rem),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(100%, 1040px);
  position: relative;
  z-index: 1;
}

.top {
  margin-bottom: 0.9rem;
  text-align: center;
  color: #334155;
}

.top h1 {
  font-size: clamp(1.55rem, 4vw, 2.45rem);
  letter-spacing: -0.06em;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.top p {
  color: var(--muted-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

.shell {
  padding: 0.9rem;
  border: 1px solid var(--line-light);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(18px);
}

.console {
  min-height: 430px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 24rem),
    linear-gradient(135deg, var(--dark), var(--dark-2));
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.sidebar {
  padding: 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.22);
}

.brand {
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1.2rem;
  color: #ffffff;
}

.nav {
  display: grid;
  gap: 0.5rem;
}

.nav-item {
  display: block;
  padding: 0.78rem 0.85rem;
  border-radius: 12px;
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.9rem;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-item.active {
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.38);
}

.main {
  padding: 1.35rem;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.main-header h2 {
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  letter-spacing: -0.06em;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.main-header p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 650px;
}

.status-pill {
  white-space: nowrap;
  padding: 0.58rem 0.8rem;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid rgba(134, 239, 172, 0.2);
  font-size: 0.78rem;
  font-weight: 900;
}

.status-pill.private {
  color: var(--amber);
  background: var(--amber-bg);
  border-color: rgba(251, 191, 36, 0.22);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.metric {
  padding: 1rem;
  min-height: 84px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 0.45rem;
}

.metric strong {
  display: block;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.log {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 0;
  color: #d1d5db;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.row:first-child {
  padding-top: 0;
}

.row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.row strong {
  color: #e5e7eb;
  white-space: nowrap;
}

.copy-block {
  margin-top: 0.9rem;
  padding: 1rem;
  border-radius: 18px;
  color: #cbd5e1;
  line-height: 1.68;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  color: #07111f;
  background: #f8fafc;
}

.secondary {
  color: #dbeafe;
  border: 1px solid rgba(147, 197, 253, 0.24);
  background: rgba(37, 99, 235, 0.14);
}

.footer {
  margin-top: 0.9rem;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

.footer a {
  color: #334155;
  text-decoration: none;
  font-weight: 700;
}

.footer a:hover {
  color: var(--blue);
}

@media (max-width: 860px) {
  body {
    align-items: start;
  }

  .console {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-header {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  body {
    padding: 1rem;
  }

  .shell {
    border-radius: 22px;
    padding: 0.55rem;
  }

  .console {
    border-radius: 18px;
  }

  .nav {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .button {
    width: 100%;
  }
}
