/*
 * Web demo shell. The editor reads VS Code theme variables; outside VS Code it falls back to its
 * built-in light and dark palettes (body class `vscode-light` / `vscode-dark`). Only the UI font is set
 * here, plus the demo toolbar.
 */
:root {
  --vscode-editor-font-family: Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
  --vscode-editor-font-size: 13px;
}

.demo-bar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  max-width: calc(100vw - 260px);
  padding: 4px 6px;
  border-radius: 8px;
  color: var(--ob-toolbar-fg, #cccccc);
  background: var(--ob-toolbar-bg, #252526);
  border: 1px solid var(--ob-ui-border, #80808059);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  font-family: var(--ob-font-family, system-ui, sans-serif);
  font-size: 12px;
}

.demo-bar button {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.demo-samples {
  height: 26px;
  padding: 0 6px;
  border: 0;
  border-radius: 4px;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.demo-samples:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.demo-samples option {
  color: initial;
}
.demo-samples:focus-visible {
  outline: 2px solid var(--ob-focus, #007fd4);
  outline-offset: 1px;
}
.demo-bar button:hover:not(:disabled) {
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.demo-bar button:disabled {
  opacity: 0.45;
  cursor: default;
}
.demo-bar button:focus-visible,
.demo-bar a:focus-visible {
  outline: 2px solid var(--ob-focus, #007fd4);
  outline-offset: 1px;
}

.demo-brand {
  padding: 0 8px 0 4px;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.demo-webmcp {
  margin-left: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.demo-webmcp[data-state='on'] {
  color: #ffffff;
  background: #16a34a;
}

.demo-noscript {
  padding: 24px;
  font-family: system-ui, sans-serif;
}

@media (max-width: 900px) {
  .demo-bar {
    top: auto;
    bottom: 64px;
    max-width: calc(100vw - 24px);
  }
}
