/* Demo / test-lab surfaces — self-contained (no login/theme CSS required) */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body.demo-lab-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 1.5rem 1rem 2.5rem;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #e2e8f0;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(14, 165, 233, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(15, 118, 110, 0.16), transparent 50%),
    #070b16;
}
body.demo-lab-body a {
  color: #7dd3fc;
  text-decoration: none;
}
body.demo-lab-body a:hover {
  text-decoration: underline;
}
body.demo-lab-body code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.demo-lab-body .ux-bg-orb {
  display: none;
}
.demo-lab-shell {
  width: min(860px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.demo-lab-shell--narrow {
  width: min(420px, 100%);
}
.demo-lab-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fef3c7;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(234, 88, 12, 0.28));
  border: 1px solid rgba(251, 191, 36, 0.45);
}
.demo-lab-shell h1 {
  margin: 0 0 0.45rem;
  font-family: "Sora", "Outfit", sans-serif;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
}
.demo-lab-lead {
  margin: 0 0 1.25rem;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 38rem;
}
.demo-lab-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #d1fae5;
  font-size: 0.9rem;
}
.demo-lab-alert.is-error {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}
.demo-lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 720px) {
  .demo-lab-grid { grid-template-columns: 1fr; }
}
.demo-lab-card {
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(7, 11, 22, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}
.demo-lab-card--portal {
  border-color: rgba(56, 189, 248, 0.35);
}
.demo-lab-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fbbf24;
}
.demo-lab-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
}
.demo-lab-card p {
  margin: 0 0 0.85rem;
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.88rem;
  line-height: 1.45;
}
.demo-lab-creds {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.demo-lab-creds li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #94a3b8;
}
.demo-lab-creds code {
  color: #e2e8f0;
  font-size: 0.78rem;
  word-break: break-all;
}
.demo-lab-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-weight: 800;
  color: #0f172a;
  background: #e2e8f0;
  cursor: pointer;
  text-decoration: none;
}
.demo-lab-btn--accent {
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #0284c7 55%, #0f766e);
}
.demo-lab-btn:hover { filter: brightness(1.05); }
.demo-lab-stack {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}
.demo-lab-note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.65);
  line-height: 1.45;
}
.demo-lab-note a { color: #7dd3fc; }
.demo-lab-stock {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
}
.demo-lab-stock h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: #f8fafc;
}
.demo-lab-table-wrap { overflow-x: auto; }
.demo-lab-stock table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.demo-lab-stock th,
.demo-lab-stock td {
  text-align: left;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}
.demo-lab-stock code { color: #f8fafc; font-size: 0.78rem; }
.demo-lab-foot {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.65);
}
.demo-lab-foot a { color: #e2e8f0; }

/* Buyer portal demo banner */
.bp-demo-banner {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
  font-size: 0.86rem;
  font-weight: 650;
}
.bp-demo-banner strong { color: #fef3c7; }
