body.demo-modal-open { overflow: hidden; }
.demo-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(5, 28, 59, .38);
  backdrop-filter: blur(8px);
  animation: demo-backdrop-in .24s ease both;
}
.demo-modal-backdrop[hidden] { display: none; }
.demo-frame-shell { position: relative; }
.demo-intro-cover {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 48px;
  background: #f6f7fa;
}
.demo-intro-cover[hidden] { display: none; }
.demo-intro-card { width: min(700px, 100%); }
.demo-intro-card > img { display: block; margin-bottom: 20px; }
.demo-intro-card h3 { margin: 0 0 16px; color: #111a32; font-size: clamp(27px, 3vw, 42px); line-height: 1.1; letter-spacing: -.035em; }
.demo-intro-card p { max-width: 680px; margin: 0 0 26px; color: #52627a; font-size: 16px; line-height: 1.65; }
#demoRootStart {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #061f40;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
#demoRootStart span { margin-left: 10px; }
#demoRootStart:hover { background: #0d315d; }
.demo-modal-bar { display: none; }
.demo-frame-shell.is-fullscreen {
  min-height: 0 !important;
  position: fixed;
  inset: 12px;
  z-index: 200;
  width: auto;
  height: auto;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.55) !important;
  border-radius: 18px !important;
  background: #f6f7fa;
  box-shadow: 0 30px 100px rgba(5,28,59,.28);
  clip-path: inset(0 round 18px);
  opacity: 1 !important;
  transform: none !important;
  animation: demo-modal-in .3s cubic-bezier(.22,1,.36,1) both;
}
.demo-frame-shell.is-fullscreen .demo-modal-bar {
  height: 54px;
  padding: 0 15px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #dfe5ed;
  background: rgba(255,255,255,.96);
}
.demo-modal-bar > span { display: flex; align-items: center; gap: 12px; color: #051c3b; font-size: 12px; font-weight: 700; }
.demo-modal-bar img { width: 112px; height: auto; }
.demo-modal-close {
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9e0e9;
  border-radius: 9px;
  color: #34485f;
  background: #f8fafc;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.demo-modal-close:hover { color: #051c3b; border-color: #bfc9d6; background: #fff; }
.demo-modal-close span { font-size: 19px; font-weight: 400; line-height: 1; }
.demo-frame-shell.is-fullscreen .demo-frame {
  height: calc(100dvh - 78px) !important;
  border-radius: 0 0 17px 17px;
}
@keyframes demo-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes demo-modal-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 760px), (max-height: 500px) and (max-width: 960px) {
  .demo-intro-cover { padding: 28px 22px; place-items: center start; }
  .demo-intro-card h3 { font-size: 27px; }
  .demo-intro-card p { font-size: 14px; line-height: 1.55; }
  .demo-frame-shell.is-fullscreen { inset: 0; border: 0 !important; border-radius: 0 !important; clip-path: none; }
  .demo-frame-shell.is-fullscreen .demo-modal-bar { height: 52px; padding: 0 10px 0 14px; }
  .demo-modal-bar > span { font-size: 0; }
  .demo-modal-bar img { width: 106px; }
  .demo-frame-shell.is-fullscreen .demo-frame { height: calc(100dvh - 52px) !important; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-modal-backdrop, .demo-frame-shell.is-fullscreen { animation: none; }
}
