.demo-guide {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  width: min(360px, calc(100vw - 36px));
  color: #171717;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.demo-guide__trigger {
  display: block;
  width: fit-content;
  min-height: 44px;
  margin-left: auto;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: #fff;
  background: #171719;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
  list-style: none;
}

.demo-guide__trigger::-webkit-details-marker { display: none; }
.demo-guide[open] .demo-guide__trigger { border-radius: 8px 8px 0 0; }

.demo-guide__panel {
  max-height: min(620px, calc(100vh - 92px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 8px 0 8px 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
}

.demo-guide__eyebrow {
  margin: 0 0 8px;
  color: #6f43e8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.demo-guide h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.demo-guide p { margin: 8px 0 0; color: #666; font-size: 12px; line-height: 1.65; }
.demo-guide ol { margin: 16px 0 0; padding-left: 20px; }
.demo-guide li { margin: 8px 0; color: #333; font-size: 12px; line-height: 1.55; }
.demo-guide__states { padding-top: 14px; border-top: 1px solid #e7e4df; }

.demo-guide__actions { display: flex; gap: 8px; margin-top: 16px; }
.demo-guide__actions a {
  display: inline-flex;
  min-height: 40px;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #d9d5cf;
  border-radius: 6px;
  color: #171717;
  background: #fff;
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
}
.demo-guide__actions a:first-child { border-color: #6f43e8; color: #fff; background: #6f43e8; }
.demo-guide__actions a:focus-visible,
.demo-guide__trigger:focus-visible { outline: 3px solid rgba(111, 67, 232, 0.34); outline-offset: 3px; }

@media (max-width: 480px) {
  .demo-guide { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  .demo-guide__panel { max-height: calc(100vh - 80px); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-guide *, .demo-guide *::before, .demo-guide *::after { scroll-behavior: auto !important; }
}
