.bbs-embedded-demo {
  --demo-header-height: 84px;
  display: grid;
  grid-template-rows: var(--demo-header-height) minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  background: #f8f7f3;
  color: #172630;
}
.bbs-embedded-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-width: 0;
  padding: 12px 24px;
  border-bottom: 1px solid #dce0df;
  background: #fff;
}
.bbs-embedded-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.bbs-embedded-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  background: #173442;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.bbs-embedded-wordmark {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
}
.bbs-embedded-wordmark span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.bbs-embedded-heading {
  min-width: 0;
}
.bbs-embedded-heading h1 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.3;
}
.bbs-embedded-heading p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.3;
  color: #52616b;
}
.bbs-embedded-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d2d9da;
  border-radius: 9px;
  background: #fff;
  color: #173442;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.bbs-embedded-back:hover {
  background: #f2f5f4;
}
.bbs-embedded-header a:focus-visible {
  outline: 3px solid #4b7e96;
  outline-offset: 3px;
}
.bbs-embedded-content {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.bbs-embedded-frame {
  display: block;
  width: 100%;
  height: calc(100vh - var(--demo-header-height));
  height: calc(100dvh - var(--demo-header-height));
  min-width: 0;
  border: 0;
  background: #f8f7f3;
}
.bbs-embedded-frame:focus-visible {
  outline: 3px solid #4b7e96;
  outline-offset: -3px;
}
.bbs-embedded-unavailable {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  max-width: 600px;
  min-height: 100%;
  margin: auto;
  padding: 28px;
}
.bbs-embedded-unavailable h2 {
  font-size: 26px;
  font-weight: 750;
  line-height: 1.15;
}
.bbs-embedded-unavailable a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 700px) {
  .bbs-embedded-header {
    gap: 12px;
    padding: 12px;
  }
  .bbs-embedded-wordmark {
    display: none;
  }
  .bbs-embedded-heading h1 {
    font-size: 14px;
  }
  .bbs-embedded-heading p {
    font-size: 11px;
  }
  .bbs-embedded-back {
    gap: 5px;
    padding: 0 9px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bbs-embedded-demo * {
    scroll-behavior: auto;
  }
}
