html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 28%),
    linear-gradient(180deg, #f8fbff, #edf4ff);
  color: #0f172a;
}

body {
  min-height: 100vh;
}

.boot-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.boot-card {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 28px 32px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.boot-loader {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 3px solid rgba(37, 99, 235, 0.18);
  border-top-color: #2563eb;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* stackline-docs-refresh-2026 */
html,
body {
  background:
    radial-gradient(circle at top right, rgba(63, 81, 181, 0.14), transparent 28%),
    linear-gradient(180deg, #f8f9fc 0%, #f5f7fb 44%, #eef2f8 100%);
  color: #212121;
  font-family: Roboto, "Helvetica Neue", sans-serif;
}


/* stackline-docs-mobile-layout-fix-2026 */
.hero-main h1,
.hero-main h2,
.hero-card h1,
.hero-card h2,
.hero h1,
.hero h2,
.page-header h1,
.page-header h2,
.docs-hero h1,
.docs-hero h2,
article h1:first-child,
article h2:first-child {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.layout,
.docs-layout,
.hero,
.hero-grid,
.content-grid,
.playground-shell,
.playground__grid,
.example-shell,
.example-explorer,
.quickstart-grid,
.workbench-grid,
.release-links,
.cta-row,
.controls,
.hero-actions,
.inline-actions,
.playground-actions,
.playground-preview-tabs,
.field,
.field.two-up,
.sidebar,
.sidebar-card,
.panel,
.demo-card,
.playground-card,
.playground-controls,
.playground-preview,
.result-card,
.controls-card,
.release-card,
.api-card,
.preview-card,
.example-stage,
.demo-stage,
.docs-panel,
.docs-card,
.table-shell,
.surface-card,
.copy-card,
.install-card,
.card-shell,
.hero-copy,
.hero-setup {
  min-width: 0;
}

.badge,
.hero-badge,
.version-pill,
.release-pill,
.meta-pill,
.release-link {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

pre,
.code,
.code-block,
.code-preview,
.snippet pre,
.code-card pre {
  max-width: 100%;
}

@media (max-width: 760px) {
  .release-links,
  .cta-row,
  .controls,
  .hero-actions,
  .inline-actions,
  .playground-actions,
  .toolbar,
  .example-stage-header,
  .playground-preview-tabs {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: stretch;
  }

  .release-link,
  .btn,
  .button,
  .ghost-button,
  button,
  .copy-button,
  .clear-btn {
    width: 100%;
  }

  .playground-shell,
  .playground__grid,
  .example-shell,
  .example-explorer,
  .quickstart-grid,
  .workbench-grid,
  .demo-grid,
  .api-grid,
  .feature-grid,
  .results-grid,
  .control-grid,
  .toggle-grid,
  .meta-grid,
  .page-grid,
  .surface-card-grid,
  .hero-grid,
  .content-grid,
  .layout,
  .docs-layout,
  .hero {
    grid-template-columns: 1fr !important;
  }

  .field.two-up,
  .playground-table-head,
  .playground-table-row,
  .table-head,
  .table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .hero-main h1,
  .hero-main h2,
  .hero-card h1,
  .hero-card h2,
  .hero h1,
  .hero h2,
  .page-header h1,
  .page-header h2,
  .docs-hero h1,
  .docs-hero h2,
  article h1:first-child,
  article h2:first-child {
    font-size: clamp(1.55rem, 7vw, 2.35rem) !important;
    line-height: 1.03 !important;
    letter-spacing: -0.03em !important;
  }

  .app-shell,
  .shell,
  .docs-page,
  .page-shell,
  #app,
  .docs-shell {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .hero-card,
  .panel,
  .log-panel,
  .sidebar-card,
  .demo-card,
  .ref-card,
  .release-card,
  .demo-stage,
  .example-stage,
  .playground-controls,
  .playground-preview,
  .api-card,
  .preview-card,
  .surface-card,
  .table-shell,
  .docs-card,
  .docs-panel {
    padding: 18px !important;
    border-radius: 22px;
  }

  .badge,
  .hero-badge,
  .version-pill,
  .release-pill,
  .meta-pill,
  .release-link {
    width: 100%;
    justify-content: center;
  }

  pre,
  .code,
  .code-block,
  .code-preview {
    font-size: 12px;
  }
}
