/* =============================================================================
   Demo chrome — everything in this file sits OUTSIDE the product.
   The floating bar, the role switcher and the "fictional data" notice exist only
   so a visitor can explore; none of it is part of the application.
   ============================================================================= */

.demo-bar {
  position: fixed; left: 50%; bottom: 18px; z-index: 150;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: calc(100vw - 24px);
  padding: 9px 10px 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #101112; color: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .34);
  font-size: 12.5px;
}

.demo-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 10.5px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase;
  white-space: nowrap;
}
.demo-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px;
  background: #46d6a8; box-shadow: 0 0 0 3px rgba(70, 214, 168, .22);
}

.demo-sep { width: 1px; height: 20px; background: rgba(255, 255, 255, .16); }

.demo-field { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.demo-field > span { opacity: .6; font-size: 11.5px; }

.demo-bar select {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  background: rgba(255, 255, 255, .07); color: #fff;
  padding: 5px 28px 5px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 10px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}
.demo-bar select:hover { background-color: rgba(255, 255, 255, .13); }
.demo-bar select option { background: #101112; color: #fff; }

.demo-btn {
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  background: transparent; color: #fff; cursor: pointer;
  padding: 5.5px 14px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.demo-btn:hover { background: rgba(255, 255, 255, .12); }
.demo-btn-solid { background: #fff; color: #101112; border-color: #fff; }
.demo-btn-solid:hover { background: rgba(255, 255, 255, .86); }

.demo-close {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 0; border-radius: 999px; background: transparent; color: #fff;
  cursor: pointer; opacity: .55;
}
.demo-close:hover { opacity: 1; background: rgba(255, 255, 255, .12); }

/* Collapsed state — a small tab that brings the bar back. */
.demo-reopen {
  position: fixed; left: 50%; bottom: 18px; z-index: 150;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px;
  background: #101112; color: #fff; cursor: pointer;
  padding: 7px 16px;
  font-family: "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 10.5px; font-weight: 500; letter-spacing: 1.8px; text-transform: uppercase;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .34);
}

/* Keeps the last rows of a long page clear of the floating bar. */
.main { padding-bottom: 92px; }

/* The "about this demo" panel reuses the product's modal, but its copy is
   demo chrome, so its accent lives here. */
.demo-note {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--panel-2); padding: 12px 14px;
  font-size: 12.5px; line-height: 1.55; color: var(--ink-2);
}
.demo-note b { color: var(--ink); }

.demo-kbd {
  display: inline-block; border: 1px solid var(--border-2); border-bottom-width: 2px;
  border-radius: 5px; background: var(--panel); padding: 0 5px;
  font-size: 11px; font-weight: 700; font-family: ui-monospace, Consolas, monospace;
}

@media (max-width: 760px) {
  .demo-bar { gap: 8px; padding: 8px 8px 8px 12px; font-size: 12px; }
  .demo-bar .demo-hide-sm { display: none; }
}
