:root {
  color-scheme: light;
  --bg: #eef2ff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.08);
  --brand: #7c3aed;
  --brand-soft: rgba(124, 58, 237, 0.12);
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.08), rgba(124, 58, 237, 0.16));
  color: var(--text);
  font: 15px/1.6 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background 180ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre {
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 18px 72px;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.sidebar,
.panel,
.playground,
.hero {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 20px;
  border-radius: 24px;
}

.brand {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.brand h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.brand p,
.page__head p,
.hero p,
.playground__header p {
  margin: 0;
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 8px;
}

.nav a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--brand-soft);
  color: var(--brand);
  outline: none;
}

.content {
  display: grid;
  gap: 24px;
}

.hero,
.panel,
.playground {
  border-radius: 28px;
  padding: 24px;
}

.hero {
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.16), transparent 34%),
    var(--surface);
}

.hero h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--muted);
}

.panel {
  display: grid;
  gap: 14px;
}

.page__head {
  display: grid;
  gap: 6px;
}

.page__head h3,
.snippet h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.panel p,
.panel li {
  color: var(--muted);
}

.panel ul {
  margin: 0;
  padding-left: 18px;
}

pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #0f172a;
  color: #e2e8f0;
}

.playground {
  display: grid;
  gap: 18px;
}

.playground__grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.playground__panel,
.playground__preview {
  display: grid;
  gap: 14px;
  align-content: start;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.field input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
}

.field--inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #ffffff;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.preview-card,
.preview-meta,
.snippet {
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.playground__setup {
  display: grid;
  gap: 12px;
}

.preview-meta {
  display: grid;
  gap: 12px;
}

.preview-swatch {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  border: 1px solid var(--line);
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .playground__grid {
    grid-template-columns: 1fr;
  }
}


/* stackline-docs-refresh-2026 */
:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --text: #212121;
  --muted: #616161;
  --line: rgba(63, 81, 181, 0.14);
  --brand: #3f51b5;
  --brand-soft: #e8eaf6;
  --shadow: 0 1px 2px rgba(33, 33, 33, 0.12), 0 18px 44px rgba(63, 81, 181, 0.08);
  --bg-top: rgba(63, 81, 181, 0.14);
  --bg-left: rgba(23, 50, 77, 0.08);
  --border: rgba(63, 81, 181, 0.14);
  --accent: #3f51b5;
  --accent-dark: #303f9f;
  --site-bg: #f5f7fb;
  --site-panel: rgba(255, 255, 255, 0.9);
  --site-panel-strong: rgba(255, 255, 255, 0.96);
  --site-border: rgba(63, 81, 181, 0.14);
  --site-border-strong: rgba(63, 81, 181, 0.22);
  --site-text: #212121;
  --site-muted: #616161;
  --site-accent: #3f51b5;
  --site-accent-strong: #5c6bc0;
  --site-shadow: 0 1px 2px rgba(33, 33, 33, 0.12), 0 18px 44px rgba(63, 81, 181, 0.08);
}

body {
  background:
    radial-gradient(circle at top right, rgba(63, 81, 181, 0.14), transparent 28%),
    radial-gradient(circle at left 18%, rgba(23, 50, 77, 0.08), transparent 26%),
    linear-gradient(180deg, #f8f9fc 0%, #f5f7fb 44%, #eef2f8 100%);
  color: #212121;
}

.sidebar,
.panel,
.playground,
.hero,
.preview-card,
.preview-meta,
.snippet,
.gallery-card,
.example-card,
.page-section,
.playground-controls,
.playground-preview,
.tip-card,
.feature-card,
.comparison-card,
.api-card,
.controls-card,
.demo-card,
.ref-card,
.result-card {
  border-color: rgba(63, 81, 181, 0.14);
  box-shadow: 0 1px 2px rgba(33, 33, 33, 0.12), 0 18px 44px rgba(63, 81, 181, 0.08);
}

.hero,
.playground,
.preview-card,
.preview-meta,
.snippet,
.gallery-card,
.example-card,
.page-section,
.playground-controls,
.playground-preview,
.tip-card,
.feature-card,
.comparison-card,
.api-card,
.controls-card,
.demo-card,
.ref-card,
.result-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 251, 0.94));
}

.eyebrow,
.page-eyebrow,
.badge,
.status-pill,
.status-badge,
.hero__meta span,
.hero-points span,
.demo-chip,
.demo-surface__phase {
  background: #e8eaf6;
  color: #3f51b5;
  border-color: rgba(63, 81, 181, 0.22);
}

.button,
.button-primary,
.btn,
.button--secondary,
.button-secondary {
  border-color: rgba(63, 81, 181, 0.14);
}

.button,
.button-primary,
.btn:not(.secondary) {
  background: linear-gradient(135deg, #3f51b5, #5c6bc0);
  color: #ffffff;
}

.button--secondary,
.button-secondary,
.btn.secondary,
.copy-button,
.clear-btn {
  color: #17324d;
}

pre,
.code-block,
.code-block pre {
  background: #1f2438;
  color: #eef3ff;
}

@media (max-width: 720px) {
  .hero-actions,
  .playground-actions,
  .hero__meta,
  .actions,
  .demo-surface__bar,
  .demo-surface__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button-primary,
  .button-secondary,
  .btn {
    width: 100%;
  }
}

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

.hero-card,
.panel,
.sidebar-card,
.demo-card,
.preview-frame,
.surface-card,
.table-shell,
.install-card,
.copy-card,
.card-shell,
.showcase-card,
.docs-card,
.docs-panel {
  min-width: 0;
}

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

@media (max-width: 640px) {
  .hero-main h1,
  .hero h1,
  .page-header h1,
  .docs-hero h1,
  article h1:first-child {
    font-size: clamp(2rem, 11vw, 3.15rem);
  }
}

/* stackline-docs-mobile-title-fix-2026 */
@media (max-width: 640px) {
  .hero-main h1,
  .hero h1,
  .page-header h1,
  .docs-hero h1,
  article h1:first-child {
    font-size: clamp(1.7rem, 8vw, 2.65rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.035em !important;
    word-break: break-all;
  }
}


/* 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;
  }
}
