/* Shared chrome for portfolio demos */
:root {
  --demo-bar-bg: #0f1115;
  --demo-bar-text: #e6ebf3;
  --demo-bar-muted: #9aa4b4;
  --demo-accent: #6366f1;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); }

.demo-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  padding: .7rem 1.25rem;
  background: var(--demo-bar-bg);
  color: var(--demo-bar-text);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .85rem;
}
.demo-bar strong { font-weight: 700; letter-spacing: .2px; }
.demo-bar span { color: var(--demo-bar-muted); }
.demo-bar a {
  color: #c4c8ff;
  text-decoration: none;
  font-weight: 600;
  padding: .4rem .85rem;
  border-radius: 6px;
  border: 1px solid rgba(99,102,241,.4);
  background: rgba(99,102,241,.15);
}
.demo-bar a:hover { background: rgba(99,102,241,.3); color: #fff; }

.demo-note {
  max-width: 720px;
  margin: 1rem auto;
  padding: .75rem 1rem;
  font-size: .8rem;
  color: #5a6575;
  background: #f0f3f8;
  border-radius: 8px;
  border-left: 3px solid var(--demo-accent);
}
.demo-note strong { color: #1d2430; }

@media (max-width: 640px) {
  .demo-bar { font-size: .78rem; }
}
