:root {
  color-scheme: dark;
  --demo-bg: #0c1014;
  --demo-surface: #151a20;
  --demo-surface-strong: #1d242c;
  --demo-text: #f4f6f8;
  --demo-muted: #aeb7c2;
  --demo-border: rgba(255, 255, 255, 0.14);
  --demo-accent: #e7b955;
  --demo-accent-contrast: #17120a;
  --demo-shell: 1180px;
  --demo-gutter: clamp(18px, 4vw, 40px);
  --demo-radius: 8px;
  --demo-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--demo-bg);
  color: var(--demo-text);
  font-family: inherit;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.demo-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--demo-accent);
  color: var(--demo-accent-contrast);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.demo-skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--demo-accent);
  outline-offset: 3px;
}

.demo-shell {
  width: min(100%, calc(var(--demo-shell) + (var(--demo-gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--demo-gutter);
}

.demo-notice {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--demo-border);
  background: rgba(8, 11, 14, 0.96);
  color: #f7f7f7;
}

.demo-notice-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
  min-height: 50px;
  padding-block: 8px;
}

.demo-notice p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 720;
}

.demo-notice strong {
  color: var(--demo-accent);
}

.demo-notice-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.demo-notice a {
  min-height: 32px;
  padding-block: 4px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 760;
  text-underline-offset: 4px;
}

.demo-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--demo-radius);
  padding: 11px 18px;
  background: var(--demo-accent);
  color: var(--demo-accent-contrast);
  font-weight: 820;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.demo-button-secondary {
  border-color: var(--demo-border);
  background: transparent;
  color: var(--demo-text);
}

@media (hover: hover) and (pointer: fine) {
  .demo-button:hover {
    transform: translateY(-2px);
  }

  .demo-button-secondary:hover {
    border-color: var(--demo-accent);
  }
}

.demo-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--demo-border);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--demo-muted);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-badge-ready {
  border-color: color-mix(in srgb, var(--demo-accent) 52%, transparent);
  color: var(--demo-accent);
}

.demo-status {
  min-height: 1.6em;
  margin: 10px 0 0;
  color: var(--demo-muted);
  font-size: 0.9rem;
  font-weight: 680;
}

.demo-status[data-state="success"] {
  color: #82d6aa;
}

.demo-status[data-state="error"] {
  color: #ffaaa3;
}

.demo-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (max-width: 640px) {
  .demo-notice {
    position: relative;
  }

  .demo-notice-inner {
    grid-template-columns: 1fr;
    padding-block: 12px;
  }

  .demo-notice-nav {
    justify-content: flex-start;
  }

  .demo-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
