* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 42%),
    linear-gradient(180deg, #f4f7fb 0%, #eef2f8 100%);
  color: #111827;
}
.is-hidden {
  display: none !important;
}
.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 40%),
    linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}
.auth-card {
  width: min(100%, 480px);
  padding: 30px;
  border-radius: 30px;
  background: rgba(10, 18, 32, 0.96);
  color: #fff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-card h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1;
}
.auth-copy {
  margin: 14px 0 24px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}
.auth-grid {
  display: grid;
  gap: 12px;
}
.auth-grid label {
  color: rgba(255, 255, 255, 0.82);
}
.auth-grid input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.auth-grid input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.auth-actions {
  margin-top: 8px;
}
.auth-status {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}
.shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  padding: 28px 20px;
  background: rgba(10, 18, 32, 0.96);
  color: white;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}
.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px;
}
.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #dbe7ff);
  color: #0f172a;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.brand h1 {
  margin: 0;
  font-size: 18px;
}
.brand p,
.muted {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}
.sidebar nav {
  display: grid;
  gap: 10px;
}
.nav-item,
.ghost,
.primary,
.danger {
  border: 0;
  border-radius: 14px;
  padding: 12px 15px;
  font: inherit;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}
.nav-item {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  text-align: left;
}
.nav-item.active {
  background: linear-gradient(135deg, #fff, #dbe7ff);
  color: #0f172a;
}
.sidebar-card {
  margin-top: 24px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}
.sidebar-card .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sidebar-card code {
  display: block;
  margin: 10px 0 14px;
  color: #dbeafe;
}
.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}
.content {
  padding: 28px;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  margin-bottom: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}
.hero h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  max-width: 13ch;
}
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: #6b7280;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 14px;
  align-self: start;
}
.stat {
  min-width: 110px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #0f172a, #111827);
  color: white;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}
.stat span {
  display: block;
  font-size: 28px;
  font-weight: 700;
}
.stat small {
  color: rgba(255, 255, 255, 0.7);
}
.panel {
  display: none;
  gap: 18px;
}
.panel.active {
  display: grid;
}
.panel-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}
.panel-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
}
.card-head,
.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}
label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #374151;
}
label.inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
input, textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  padding: 11px 12px;
  font: inherit;
  background: white;
  color: #111827;
}
textarea {
  resize: vertical;
}
.primary {
  background: linear-gradient(135deg, #111827, #0f172a);
  color: white;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}
.danger {
  background: #fee2e2;
  color: #991b1b;
}
.list,
.stack {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.list li,
.stack .item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.04);
}
.muted {
  color: #6b7280;
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .hero {
    flex-direction: column;
  }
}
@media (max-width: 720px) {
  .content {
    padding: 16px;
  }
  .hero,
  .panel-card {
    border-radius: 20px;
  }
  .status-grid {
    grid-template-columns: 1fr;
  }
}
