:root {
  --demo-accent: var(--accent, #0071e3);
  --demo-accent-soft: rgba(0, 113, 227, 0.12);
}

/* P0: single scroll owner — main scrolls; hide chrome scrollbars */
html:has(body.demo-app-body) {
  height: 100%;
  overflow: hidden;
}
body.demo-app-body {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden !important;
}
body.demo-app-body .demo-app-shell {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}
body.demo-app-body .demo-app-shell > main.main,
body.demo-app-body .demo-app-shell > .main {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
}
.demo-mobile-nav,
body.demo-app-body .mobile-bottom-nav.demo-mobile-nav {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.demo-mobile-nav::-webkit-scrollbar,
body.demo-app-body .mobile-bottom-nav.demo-mobile-nav::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.demo-success-box {
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
body.demo-app-body.auth-modal-open,
body.demo-app-body.demo-success-open {
  overflow: hidden !important;
}
body.demo-app-body.auth-modal-open .demo-app-shell > main.main,
body.demo-app-body.auth-modal-open .demo-app-shell > .main,
body.demo-app-body.demo-success-open .demo-app-shell > main.main,
body.demo-app-body.demo-success-open .demo-app-shell > .main {
  overflow: hidden !important;
}

/* Hide ALL chrome scrollbars (keep scroll) */
html:has(body.demo-app-body),
html:has(body.demo-app-body) body,
body.demo-app-body,
body.demo-app-body * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
html:has(body.demo-app-body)::-webkit-scrollbar,
html:has(body.demo-app-body) body::-webkit-scrollbar,
body.demo-app-body::-webkit-scrollbar,
body.demo-app-body *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}
body.demo-app-body .neytom-app-sidebar,
body.demo-app-body .demo-sidebar {
  overflow: hidden !important;
}

/* Mobile: never let sidebar / brand leak beside bottom nav */
html.demo-is-mobile body.demo-app-body .neytom-app-sidebar,
html.demo-is-mobile body.demo-app-body .demo-sidebar,
html.demo-is-mobile body.demo-app-body .neytom-brand-banner,
html.demo-mobile-root body.demo-app-body .neytom-app-sidebar,
html.demo-mobile-root body.demo-app-body .demo-sidebar,
html.demo-mobile-root body.demo-app-body .neytom-brand-banner {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: fixed !important;
  left: -9999px !important;
  top: auto !important;
  bottom: auto !important;
  width: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  z-index: -1 !important;
}

@media (max-width: 900px) {
  body.demo-app-body .neytom-app-sidebar,
  body.demo-app-body .demo-sidebar,
  body.demo-app-body .neytom-brand-banner,
  body.neytom-app-body .neytom-app-sidebar .neytom-brand-banner {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: fixed !important;
    left: -9999px !important;
    bottom: auto !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    z-index: -1 !important;
  }
  body.demo-app-body .mobile-bottom-nav.demo-mobile-nav {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  body.demo-app-body .mobile-bottom-nav.demo-mobile-nav::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}


.demo-top-banner {
  position: relative;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: max(8px, env(safe-area-inset-top, 0px)) 12px 8px;
  font-size: 12px;
  color: #f5f5f7;
  background: linear-gradient(90deg, rgba(28, 28, 30, 0.96), rgba(44, 44, 46, 0.94));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
  width: 100%;
}

.demo-top-banner-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.demo-top-banner-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.demo-top-banner-desc {
  margin: 0;
  line-height: 1.35;
}

.demo-top-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.demo-top-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.8);
  animation: demoPulse 1.8s ease-in-out infinite;
}

@keyframes demoPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}

.demo-top-banner-exit,
.demo-top-banner-cta {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.demo-top-banner-cta {
  background: linear-gradient(135deg, #0071e3, var(--demo-accent));
  border-color: transparent;
}

.demo-top-banner-exit:hover,
.demo-top-banner-cta:hover {
  background: rgba(255, 255, 255, 0.14);
}

.demo-top-banner-cta:hover {
  background: linear-gradient(135deg, #0058b0, #4745b8);
}

body.demo-app-body .auth-overlay {
  z-index: 10050 !important;
}

body.demo-app-body.auth-modal-open .demo-top-banner {
  z-index: 10001;
}

/* Desktop: fixed banner + sidebar offset (single-line banner, never wraps/overlaps) */
@media (min-width: 901px) {
  :root { --demo-banner-h: 46px; }

  html.demo-is-desktop .demo-top-banner,
  html:not(.demo-is-mobile) .demo-top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    height: var(--demo-banner-h);
    max-height: var(--demo-banner-h);
    padding: 0 16px;
    overflow: hidden;
  }

  html.demo-is-desktop .demo-top-banner-actions,
  html:not(.demo-is-mobile) .demo-top-banner-actions {
    height: 32px;
    max-height: 32px;
    align-items: center;
    overflow: hidden;
  }

  html.demo-is-desktop .demo-top-banner-desc,
  html:not(.demo-is-mobile) .demo-top-banner-desc {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  html.demo-is-desktop body.demo-app-body,
  html:not(.demo-is-mobile) body.demo-app-body {
    padding-top: var(--demo-banner-h);
  }

  html.demo-is-desktop .demo-app-shell,
  html:not(.demo-is-mobile) .demo-app-shell {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  html.demo-is-desktop body.demo-app-body .neytom-app-sidebar,
  html:not(.demo-is-mobile) body.demo-app-body .neytom-app-sidebar {
    top: var(--demo-banner-h);
    height: calc(100dvh - var(--demo-banner-h));
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  html.demo-is-desktop .demo-top-banner-desc,
  html:not(.demo-is-mobile) .demo-top-banner-desc { display: none; }
}

/* ---- DEMO MOBILE: UA class (landscape >900px) + viewport fallback ---- */
html.demo-is-mobile body.neytom-app-body.demo-app-body {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 100dvh;
}

html.demo-is-mobile body.demo-app-body .neytom-app-sidebar,
html.demo-is-mobile body.demo-app-body aside.demo-sidebar,
html.demo-is-mobile body.demo-app-body aside.sidebar {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

html.demo-is-mobile .demo-app-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-height: 100dvh;
  box-sizing: border-box;
  padding-bottom: calc(var(--mbn-h, 56px) + env(safe-area-inset-bottom, 0px));
}

html.demo-is-mobile .demo-top-banner {
  position: sticky !important;
  top: 0 !important;
  flex: 0 0 auto;
  width: 100%;
  z-index: 200;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top, 0px)) 12px 10px;
  box-sizing: border-box;
}

html.demo-is-mobile .demo-top-banner-brand {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

html.demo-is-mobile .demo-top-banner-title {
  font-size: 12px;
  white-space: nowrap;
  line-height: 1.2;
}

html.demo-is-mobile .demo-top-banner-desc {
  display: none !important;
}

html.demo-is-mobile .demo-top-banner-actions {
  flex: 0 0 auto;
  width: auto;
  gap: 6px;
}

html.demo-is-mobile .demo-top-banner .demo-nano-cta {
  display: none !important;
}

html.demo-is-mobile body.demo-app-body .demo-app-shell > .main,
html.demo-is-mobile body.demo-app-body .demo-app-shell > main.main {
  flex: 1 1 auto;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  margin-left: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 12px 12px 16px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-sizing: border-box;
  position: relative !important;
  z-index: 1;
}

html.demo-is-mobile body.demo-app-body .demo-convert-cta,
html.demo-is-mobile body.demo-app-body .demo-sticky-bar {
  display: none !important;
}

html.demo-is-mobile body.demo-app-body .mobile-bottom-nav.demo-mobile-nav {
  position: fixed !important;
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10002 !important;
  display: flex !important;
}

html.demo-is-mobile body.demo-app-body .demo-mobile-nav a .mbn-label {
  font-size: 9px !important;
  max-width: none !important;
}

html.demo-is-mobile .demo-dash-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

html.demo-is-mobile .demo-hero-row {
  flex-direction: column;
  gap: 12px;
}

html.demo-is-mobile .demo-hero-metrics {
  width: 100%;
  grid-template-columns: 1fr 1fr;
}

html.demo-is-mobile .demo-input-row {
  flex-direction: column;
}

html.demo-is-mobile .demo-input-row input,
html.demo-is-mobile .demo-input-row .demo-btn {
  width: 100%;
}

html.demo-is-mobile body.demo-app-body .page-title {
  font-size: clamp(20px, 5.5vw, 24px);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

/* Viewport fallback (desktop resize / no UA class yet) */
@media (max-width: 900px) {
  html,
  html.demo-mobile-root,
  body.neytom-app-body.demo-app-body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100dvh;
  }

  body.neytom-app-body.demo-app-body {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body.demo-app-body .neytom-app-sidebar,
  body.demo-app-body aside.demo-sidebar,
  body.demo-app-body aside.sidebar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .demo-app-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-height: 100dvh;
    box-sizing: border-box;
    padding-bottom: calc(var(--mbn-h, 56px) + env(safe-area-inset-bottom, 0px));
  }

  .demo-top-banner {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    flex: 0 0 auto;
    width: 100%;
    z-index: 200;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: max(10px, env(safe-area-inset-top, 0px)) 12px 10px;
    box-sizing: border-box;
  }

  .demo-top-banner-brand {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
  }

  .demo-top-banner-title {
    font-size: 12px;
    white-space: nowrap;
    line-height: 1.2;
  }

  .demo-top-banner-actions {
    flex: 0 0 auto;
    width: auto;
    gap: 6px;
  }

  body.demo-app-body .page-title {
    font-size: clamp(20px, 5.5vw, 24px);
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .demo-top-banner-desc {
    display: none !important;
  }

  .demo-top-banner .demo-nano-cta {
    display: none !important;
  }

  body.demo-app-body .demo-app-shell > .main,
  body.demo-app-body .demo-app-shell > main.main {
    flex: 1 1 auto;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    margin-left: 0 !important;
    min-height: auto !important;
    min-width: 0 !important;
    padding: 12px 12px 16px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    min-height: 0 !important;
    box-sizing: border-box;
    position: relative !important;
    z-index: 1;
  }

  .demo-dash-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .demo-dash-main,
  .demo-dash-side {
    width: 100%;
    min-width: 0;
  }

  /* Hide promo card that overlaps on mobile */
  body.demo-app-body .demo-convert-cta,
  body.demo-app-body .demo-convert-cta--primary,
  body.demo-app-body .demo-dash-side .demo-convert-cta {
    display: none !important;
  }

  /* Sticky promo bar conflicts with bottom nav on mobile */
  body.demo-app-body .demo-sticky-bar {
    display: none !important;
  }

  body.demo-app-body.demo-sticky-open .demo-app-shell {
    padding-bottom: calc(var(--mbn-h, 56px) + env(safe-area-inset-bottom, 0px));
  }

  body.demo-app-body .demo-toast {
    bottom: calc(var(--mbn-h, 56px) + env(safe-area-inset-bottom, 0px) + 12px);
    left: 12px;
    right: 12px;
    z-index: 10004;
  }

  body.demo-app-body .mobile-bottom-nav.demo-mobile-nav {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10002 !important;
    display: flex !important;
    height: calc(var(--mbn-h, 56px) + env(safe-area-inset-bottom, 0px));
    max-height: calc(var(--mbn-h, 56px) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  body.demo-app-body .demo-mobile-nav a {
    min-width: 52px;
    flex: 0 0 auto;
  }

  body.demo-app-body .demo-mobile-nav a .mbn-label {
    font-size: 9px !important;
    max-width: none !important;
    line-height: 1.15 !important;
  }

  body.demo-app-body .demo-mobile-nav a .mbn-icon {
    font-size: 18px !important;
  }

  body.demo-app-body .demo-card,
  body.demo-app-body .demo-progress-card {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  body.demo-app-body .demo-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .demo-hero-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .demo-hero-intro {
    max-width: none;
    width: 100%;
  }

  .demo-hero-metrics {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .demo-hero-metric {
    min-width: 0;
  }

  .demo-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-input-row input,
  .demo-input-row .demo-btn {
    width: 100%;
  }
}

html.demo-is-mobile[data-orientation="landscape"] body.demo-app-body .demo-app-shell {
  padding-bottom: calc(var(--mbn-h, 56px) + env(safe-area-inset-bottom, 0px));
}

html.demo-is-mobile[data-device="mobile"] body.demo-app-body .demo-app-shell > .main,
html.demo-is-mobile[data-device="mobile"] body.demo-app-body .demo-app-shell > main.main,
html.demo-is-mobile[data-device="tablet"] body.demo-app-body .demo-app-shell > .main,
html.demo-is-mobile[data-device="tablet"] body.demo-app-body .demo-app-shell > main.main,
html.demo-is-mobile[data-display-fit="mobile"] body.demo-app-body .demo-app-shell > .main,
html.demo-is-mobile[data-display-fit="mobile"] body.demo-app-body .demo-app-shell > main.main,
html.demo-is-mobile[data-display-fit="tablet"] body.demo-app-body .demo-app-shell > .main,
html.demo-is-mobile[data-display-fit="tablet"] body.demo-app-body .demo-app-shell > main.main {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: auto !important;
}

.demo-sidebar-badge {
  display: inline-flex;
  align-self: flex-start;
  margin: -8px 0 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d3a9e;
  background: var(--demo-accent-soft);
  border: 1px solid rgba(0, 113, 227, 0.25);
}

.demo-create-link {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.demo-create-link:hover { text-decoration: underline; }

.demo-pulse-badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: auto;
}

.demo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .demo-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 113, 227, 0.22);
    box-shadow: 0 12px 30px -12px rgba(0, 113, 227, 0.22);
  }
}

.demo-card h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.demo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.demo-stat {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.demo-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.demo-stat span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.demo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.demo-table th,
.demo-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.demo-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.demo-tag {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(52, 199, 89, 0.12);
  color: #1a7f37;
}

.demo-tag.warn {
  background: rgba(255, 149, 0, 0.12);
  color: #9a6700;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 11px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s; }

.demo-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.demo-btn-primary {
  background: linear-gradient(180deg, #1a86f0, var(--accent) 55%, #0064cc);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 3px 12px rgba(0, 113, 227, 0.22);
}

.demo-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 8px 20px rgba(0, 113, 227, 0.32); }

.demo-btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border: 1px solid var(--border);
}

.demo-btn-demo {
  background: linear-gradient(135deg, var(--demo-accent), #0071e3);
  color: #fff;
}

.demo-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.demo-input-row input {
  flex: 1;
  min-width: 180px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  font-size: 14px;
  background: #fbfbfd;
}

.demo-result {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
}

.demo-result.is-visible { display: block; }
.demo-result.ok { background: #e3f9e5; color: #1a7f37; border: 1px solid #b7efc5; }
.demo-result.info { background: #eef4ff; color: #1e3a8a; border: 1px solid #bfdbfe; }

.demo-deploy-box {
  display: none;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}

.demo-deploy-box.is-visible { display: block; }

.demo-deploy-steps { padding: 16px 18px; }

.demo-deploy-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid #f0f0f5;
}

.demo-deploy-step:last-child { border-bottom: none; }

.demo-deploy-step .ds-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: #e5e5ea;
  color: #888;
  flex-shrink: 0;
}

.demo-deploy-step.active .ds-dot { background: var(--accent); color: #fff; }
.demo-deploy-step.done .ds-dot { background: var(--green); color: #fff; }
.demo-deploy-step.active,
.demo-deploy-step.done { color: var(--text); }

.demo-admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.demo-admin-nav {
  position: sticky;
  top: 58px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.demo-admin-nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.demo-admin-nav button.active,
.demo-admin-nav button:hover {
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent);
}

.demo-admin-nav button.danger { color: #cc0000; }

.demo-admin-panel { display: none; }
.demo-admin-panel.active { display: block; }

.demo-meter {
  height: 8px;
  background: #e5e5ea;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.demo-meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.demo-log {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.55;
  background: #111;
  color: #d1fae5;
  border-radius: 12px;
  padding: 12px;
  max-height: 220px;
  overflow: auto;
}

.demo-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10002;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(28, 28, 30, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.demo-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hp-btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 980px;
  border: 1px solid rgba(0, 113, 227, 0.35);
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.14), rgba(0, 113, 227, 0.08));
  color: #3d3a9e;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hp-btn-demo:hover {
  border-color: rgba(0, 113, 227, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.18);
}

@media (max-width: 900px) {
  .demo-admin-layout { grid-template-columns: 1fr; }
  .demo-admin-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: none;
  }
  .demo-admin-nav button { width: auto; flex: 1 1 calc(50% - 6px); }
  .demo-grid-2, .demo-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .demo-hero-metrics { grid-template-columns: 1fr; }
  body.demo-app-body .demo-app-shell > main.main,
  body.demo-app-body .demo-app-shell > .main {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* ——— Conversion / realism ——— */
.demo-hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.demo-hero-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.demo-hero-intro { max-width: 420px; }

.demo-hero-sub {
  margin-bottom: 0;
  font-size: 14px;
}

.demo-trust-line {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.demo-trust-line strong {
  color: var(--text);
  font-weight: 800;
}

.demo-hero-metric strong small {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.demo-metric-note {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.35;
}

.demo-hero-metric--save {
  background: linear-gradient(145deg, rgba(52, 199, 89, 0.1), rgba(255, 255, 255, 0.9));
  border-color: rgba(52, 199, 89, 0.22);
}

.demo-hero-metric--save strong { color: #1a7f37; }

.demo-hero-metric--trust strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.demo-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.demo-hero-metric {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 110px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .demo-hero-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px -12px rgba(0, 113, 227, 0.25);
  }
}

.demo-hero-metric .lbl {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 4px;
}

.demo-hero-metric strong {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.demo-hero-metric .delta {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  margin-top: 4px;
}

.demo-hero-metric--accent {
  background: linear-gradient(145deg, rgba(0, 113, 227, 0.08), rgba(52, 170, 220, 0.05));
  border-color: rgba(0, 113, 227, 0.2);
}

.demo-hero-metric--accent strong { color: var(--accent); }

.demo-dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.demo-dash-main, .demo-dash-side { min-width: 0; }

.demo-card-lead {
  font-size: 13px;
  color: var(--muted);
  margin: -6px 0 12px;
  line-height: 1.45;
}

.demo-sub-suffix {
  align-self: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.demo-deploy-main {
  width: 100%;
  padding: 16px;
  font-size: 15px;
}

.demo-progress-card {
  background: linear-gradient(145deg, rgba(0, 113, 227, 0.08), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.demo-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.demo-progress-kicker {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--demo-accent);
}

.demo-progress-title {
  font-size: 15px;
  font-weight: 800;
  margin-top: 2px;
}

.demo-progress-pct {
  font-size: 28px;
  font-weight: 900;
  color: var(--demo-accent);
  line-height: 1;
}

.demo-progress-bar {
  height: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.demo-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--demo-accent), #0071e3);
  transition: width 1s ease;
}

.demo-progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px 12px;
}

.demo-progress-steps li {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-progress-steps li.is-done { color: var(--text); }
.demo-progress-steps li.is-next { color: var(--accent); font-weight: 700; }

.demo-progress-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: #e5e5ea;
  flex-shrink: 0;
}

.demo-progress-steps li.is-done .demo-progress-check {
  background: var(--green);
  color: #fff;
}

.demo-progress-steps li.is-next .demo-progress-check {
  background: rgba(0, 113, 227, 0.15);
  color: var(--accent);
}

.demo-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.demo-activity-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.demo-activity-list li:last-child { border-bottom: none; }
.demo-activity-list li.is-hot .demo-activity-text { font-weight: 700; color: var(--text); }

.demo-activity-icon { font-size: 18px; flex-shrink: 0; }
.demo-activity-text { font-size: 13px; font-weight: 600; }
.demo-activity-time { font-size: 11px; color: var(--muted); margin-top: 2px; }

.demo-convert-cta {
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  text-align: center;
}

.demo-convert-cta--primary {
  background: linear-gradient(145deg, #0071e3, var(--demo-accent));
  color: #fff;
  box-shadow: 0 12px 32px rgba(0, 113, 227, 0.28);
}

.demo-convert-cta--soft {
  background: var(--card);
  border: 1px solid var(--border);
}

.demo-convert-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.demo-convert-cta--primary .demo-convert-copy strong { color: #fff; }

.demo-convert-copy span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.92;
}

.demo-convert-cta--soft .demo-convert-copy span { color: var(--muted); }

.demo-btn-convert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 12px 20px;
  border-radius: 980px;
  background: #fff;
  color: #0071e3;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.demo-convert-cta--soft .demo-btn-convert {
  background: var(--accent);
  color: #fff;
}

.demo-btn-convert:hover { transform: translateY(-1px); }

.demo-btn-convert-sm {
  padding: 8px 16px;
  font-size: 12px;
  margin-top: 0;
}

.demo-convert-note {
  font-size: 10px;
  margin: 10px 0 0;
  opacity: 0.85;
}

.demo-site-preview {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
}

.demo-site-preview-bar {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: #ececec;
}

.demo-site-preview-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
}

.demo-site-preview-body {
  padding: 24px 16px;
  text-align: center;
}

.demo-site-preview-logo {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0071e3, var(--demo-accent));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-site-preview-title { font-size: 15px; font-weight: 800; }
.demo-site-preview-url { font-size: 11px; color: var(--muted); margin-top: 4px; }

.demo-site-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.demo-sidebar-cta {
  display: block;
  text-align: center;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0071e3, var(--demo-accent));
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 113, 227, 0.25);
}

/* Nano plan CTA — label + animated button */
.demo-nano-cta,
a.demo-nano-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 10px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 113, 227, 0.16);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.1);
  text-decoration: none !important;
  color: inherit;
}

.demo-nano-cta--block { width: 100%; box-sizing: border-box; }

.demo-nano-cta-plan {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
  color: var(--demo-accent);
}

.demo-nano-cta-action,
button.demo-nano-cta-action,
a.demo-nano-cta-action,
.neytom-app-sidebar .demo-nano-cta-action,
.demo-top-banner .demo-nano-cta-action {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 18px !important;
  border-radius: 980px !important;
  border: none !important;
  background: linear-gradient(135deg, #0071e3 0%, var(--demo-accent) 100%) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.35);
  animation: demoNanoPulse 2.4s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.demo-nano-cta-action:hover,
button.demo-nano-cta-action:hover,
a.demo-nano-cta-action:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(0, 113, 227, 0.45) !important;
  color: #fff !important;
}

@keyframes demoNanoPulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.35), 0 0 0 0 rgba(0, 113, 227, 0.35);
  }
  50% {
    box-shadow: 0 8px 26px rgba(0, 113, 227, 0.45), 0 0 0 8px rgba(0, 113, 227, 0);
  }
}

.demo-nano-cta--sm {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 5px 6px 5px 12px;
  border-radius: 980px;
}

.demo-nano-cta--sm .demo-nano-cta-plan {
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: none;
  white-space: nowrap;
  margin: 0;
}

.demo-nano-cta--sm .demo-nano-cta-action {
  width: auto;
  padding: 8px 16px !important;
  font-size: 12px !important;
}

.demo-convert-cta--primary .demo-nano-cta {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.demo-convert-cta--primary .demo-nano-cta-plan { color: rgba(255, 255, 255, 0.9); }

.demo-top-banner .demo-nano-cta {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 30px !important;
  max-height: 30px !important;
  padding: 0 2px 0 10px !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  overflow: hidden;
}

.demo-top-banner .demo-nano-cta-plan {
  display: inline !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 10px !important;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.demo-top-banner .demo-nano-cta-action,
.demo-top-banner a.demo-nano-cta-action {
  display: inline-flex !important;
  width: auto !important;
  height: 26px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  animation: none !important;
  transform: none !important;
}
.demo-top-banner .demo-nano-cta-action:hover {
  transform: none !important;
  box-shadow: none !important;
  filter: brightness(1.08);
}

.demo-sidebar .demo-nano-cta {
  margin-bottom: 10px;
}

.demo-convert-cta .demo-nano-cta { margin-top: 14px; }

.demo-success-box .demo-nano-cta { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  .demo-nano-cta-action { animation: none !important; }
  .demo-card,
  .demo-hero-metric,
  .demo-btn { transition: none; }
  .demo-card:hover,
  .demo-hero-metric:hover { transform: none; }
}

.demo-overview-revenue {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.demo-overview-revenue span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.demo-overview-revenue strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
  margin: 4px 0;
}

.demo-overview-revenue em {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

.demo-inbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.demo-inbox-table tr.is-unread { background: rgba(0, 113, 227, 0.04); }
.demo-inbox-subject {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: inherit;
  text-align: left;
}

.demo-inbox-preview {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 3px;
}

.demo-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10002;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0));
  background: rgba(28, 28, 30, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  animation: demoSlideUp 0.4s ease;
}

.demo-sticky-bar[hidden] { display: none !important; }

@keyframes demoSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.demo-sticky-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.demo-sticky-text {
  flex: 1;
  font-size: 13px;
  color: #f5f5f7;
  min-width: 180px;
}

.demo-sticky-dismiss {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

.demo-success-modal[hidden] { display: none !important; }

.demo-success-modal {
  position: fixed;
  inset: 0;
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

@media (max-width: 900px) {
  .demo-success-modal {
    align-items: flex-end;
    padding: 0;
  }

  .demo-success-box {
    max-width: none;
    width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: min(88vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}

.demo-success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.demo-success-box {
  position: relative;
  max-width: 420px;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  animation: demoPop 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes demoPop {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.demo-success-icon { font-size: 40px; margin-bottom: 8px; }
.demo-success-box h2 { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.demo-success-box p { font-size: 14px; color: var(--muted); line-height: 1.5; }

.demo-success-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.demo-success-stats div {
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 6px;
}

.demo-success-stats strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}

.demo-success-stats span {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

.demo-result.claim {
  background: linear-gradient(145deg, #e3f9e5, #eef4ff);
  border: 1px solid #b7efc5;
  color: #1d1d1f;
}

.demo-result-cta.demo-nano-cta-action {
  display: inline-flex !important;
  width: auto !important;
  margin-top: 12px;
}

/* Dedicated signup page (no overlay modal) */
.demo-signup-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8px;
}

.demo-signup-wrap {
  width: min(480px, 100%);
}

.demo-signup-card {
  padding: clamp(20px, 4vw, 28px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 113, 227, 0.12);
  box-shadow: 0 16px 48px rgba(0, 20, 60, 0.1);
  backdrop-filter: blur(20px);
}

.demo-signup-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--demo-accent);
}

.demo-signup-card .page-title { margin-bottom: 6px; }

.demo-signup-card .page-sub { margin-bottom: 18px; }

.demo-signup-form .field { margin-bottom: 10px; }

.demo-signup-login {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.demo-signup-login a { color: var(--accent); font-weight: 700; }

.demo-signup-back {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.demo-signup-back:hover { color: var(--accent); }

/* Mobile/tablet only — NEVER landscape-alone (desktop is landscape and needs sidebar offset) */
html.demo-is-mobile body.demo-app-body .demo-app-shell > .main,
html.demo-is-mobile body.demo-app-body .demo-app-shell > main.main,
html[data-device="mobile"].demo-is-mobile body.demo-app-body .demo-app-shell > .main,
html[data-device="mobile"].demo-is-mobile body.demo-app-body .demo-app-shell > main.main,
html[data-display-fit="mobile"].demo-is-mobile body.demo-app-body .demo-app-shell > .main,
html[data-display-fit="mobile"].demo-is-mobile body.demo-app-body .demo-app-shell > main.main {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: auto !important;
  padding: 12px 12px 16px !important;
}

html.demo-is-mobile body.demo-app-body {
  display: block !important;
}

/* Desktop: main stays clear of fixed sidebar + banner; sticky bar aligns with content */
@media (min-width: 901px) {
  html.demo-is-desktop body.demo-app-body .demo-app-shell > main.main,
  html.demo-is-desktop body.demo-app-body .demo-app-shell > .main,
  html:not(.demo-is-mobile) body.demo-app-body .demo-app-shell > main.main,
  html:not(.demo-is-mobile) body.demo-app-body .demo-app-shell > .main {
    margin-left: var(--sidebar-w, 260px) !important;
    width: auto !important;
    max-width: none !important;
    min-height: calc(100dvh - var(--demo-banner-h, 46px));
    padding: 24px 28px 32px !important;
    box-sizing: border-box;
  }

  html.demo-is-desktop .demo-sticky-bar,
  html:not(.demo-is-mobile) .demo-sticky-bar {
    left: var(--sidebar-w, 260px);
  }
}
