/* Standalone demo page */
.demo-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(198, 242, 74, 0.18), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #f7f7f1 0%, #eeece4 100%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.demo-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2.2vw, 34px);
}

.demo-slot {
  width: 100%;
}

.demo-loading {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.demo-error {
  color: var(--danger);
}

.demo-slot .app-frame {
  width: min(100%, 1440px);
  max-width: 1440px;
  min-height: min(820px, calc(100vh - 28px));
  height: calc(100vh - clamp(28px, 4.4vw, 68px));
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  box-shadow:
    0 1px 1px rgba(10, 10, 10, 0.04),
    0 28px 80px rgba(10, 10, 10, 0.12);
}

.demo-slot .app-body {
  flex: 1;
  min-height: 0;
}

.demo-slot .app-body > main {
  min-width: 0;
  overflow: auto;
}

.demo-slot .sidebar {
  min-height: 0;
}

.demo-slot .app-topbar {
  flex: 0 0 auto;
}

.demo-slot .pane-body {
  padding-bottom: 32px;
}

@media (max-width: 980px) {
  .demo-shell {
    align-items: flex-start;
    padding: 10px;
  }

  .demo-slot .app-frame {
    min-height: calc(100vh - 20px);
    height: auto;
    border-radius: 14px;
  }

  .demo-slot .app-body > main {
    overflow: visible;
  }
}

@media (max-width: 600px) {
  .demo-shell {
    padding: 0;
  }

  .demo-slot .app-frame {
    min-height: 100vh;
    border-width: 0;
    border-radius: 0;
  }

  .demo-slot .app-topbar {
    border-radius: 0;
  }
}
