.public-demo-frame {
  min-height: 100vh;
  background: var(--bg);
}

.public-demo-shell .sidebar {
  top: 52px;
  min-height: calc(100vh - 52px);
  z-index: 2;
}

.public-demo-shell .nav button {
  width: 100%;
}

.public-demo-shell .nav button span {
  pointer-events: none;
}

.demo-top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px clamp(16px, 3vw, 34px);
  border: 0;
  border-bottom: 1px solid rgba(241, 183, 43, 0.36);
  background:
    linear-gradient(90deg, rgba(241, 183, 43, 0.15), rgba(56, 201, 109, 0.08) 42%, rgba(56, 201, 109, 0.02)),
    #0b1014;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  color: #f8d677;
  font-size: 12px;
  font-weight: 750;
}

.demo-top-bar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.demo-top-bar b {
  text-transform: uppercase;
}

.demo-top-bar span {
  color: #f1dfad;
}

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

.demo-top-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(241, 183, 43, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: #f6df9e;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.demo-top-bar a.is-active,
.demo-top-bar a:hover {
  border-color: rgba(56, 201, 109, 0.52);
  background: rgba(56, 201, 109, 0.12);
  color: #a2efb8;
}

.demo-top-bar .demo-landing-link {
  border-color: rgba(244, 247, 248, 0.28);
  color: #f4f7f8;
}

.demo-top-bar .demo-request-link {
  border-color: rgba(56, 201, 109, 0.58);
  background: rgba(56, 201, 109, 0.16);
  color: #a2efb8;
}

.public-demo-shell .panel-head > div span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.public-demo-shell .contract-link.is-active {
  border-color: rgba(56, 201, 109, 0.46);
  background: rgba(56, 201, 109, 0.08);
  color: #a2efb8;
}

.public-demo-shell .topbar {
  grid-template-columns: minmax(280px, 0.78fr) minmax(520px, 1.22fr);
}

.public-demo-shell .title h1 {
  max-width: 520px;
  white-space: normal;
}

.public-demo-shell .field select {
  min-width: 136px;
}

.demo-static-content {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(22px, 5vw, 58px);
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 44px 0 56px;
  border-top: 1px solid var(--border);
}

.demo-static-content h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.demo-static-content p,
.demo-static-content li {
  color: var(--muted);
  line-height: 1.55;
}

.demo-static-content p {
  margin: 0 0 16px;
}

.demo-static-content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-static-content li {
  position: relative;
  padding-left: 18px;
}

.demo-static-content li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.demo-static-content a {
  color: #9af0b2;
  font-weight: 850;
  text-decoration: none;
}

.demo-static-content a:hover {
  color: #c4ffd1;
}

@media (max-width: 1320px) {
  .demo-top-bar {
    display: grid;
  }
}

@media (max-width: 760px) {
  .public-demo-shell .sidebar {
    top: 0;
    min-height: auto;
  }

  .demo-top-bar,
  .demo-top-bar nav {
    display: grid;
  }

  .public-demo-shell .topbar {
    grid-template-columns: 1fr;
  }

  .demo-static-content {
    grid-template-columns: 1fr;
    width: calc(100vw - 28px);
    padding: 34px 0 42px;
  }
}
