:root {
  color-scheme: light;
  --bg: #f5f0e7;
  --ink: #1b2330;
  --muted: #657080;
  --line: rgba(27, 35, 48, 0.12);
  --line-strong: rgba(27, 35, 48, 0.24);
  --panel: rgba(255, 252, 247, 0.94);
  --panel-strong: #fffaf2;
  --panel-soft: rgba(255, 255, 255, 0.72);
  --brand: #0d6d62;
  --brand-contrast: #fff;
  --accent: #d96e4d;
  --code: #18202c;
  --shadow: 0 22px 56px rgba(24, 32, 44, 0.12);
  --page-background:
    radial-gradient(circle at top left, rgba(217, 110, 77, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(13, 109, 98, 0.16), transparent 24%),
    linear-gradient(180deg, #fbf7ef 0%, #f1eadf 100%);
  --mobile-chrome: linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(255, 250, 242, 0.76));
  --mobile-control: rgba(255, 250, 242, 0.88);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-display: 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'Trebuchet MS', 'Segoe UI', sans-serif;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #111923;
  --ink: #e8eef8;
  --muted: #aebacc;
  --line: rgba(232, 238, 248, 0.14);
  --line-strong: rgba(232, 238, 248, 0.28);
  --panel: rgba(24, 35, 50, 0.94);
  --panel-strong: #182332;
  --panel-soft: rgba(38, 53, 72, 0.82);
  --brand: #6bcabd;
  --brand-contrast: #0d141e;
  --accent: #f0a080;
  --code: #0d141e;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
  --page-background:
    radial-gradient(circle at top left, rgba(240, 160, 128, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(107, 202, 189, 0.14), transparent 24%),
    linear-gradient(180deg, #101823 0%, #0b1119 100%);
  --mobile-chrome: linear-gradient(180deg, rgba(24, 35, 50, 0.98), rgba(24, 35, 50, 0.8));
  --mobile-control: rgba(24, 35, 50, 0.9);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-background);
  color: var(--ink);
  font-family: var(--font-body);
}

a,
button,
input {
  font: inherit;
}

.docs-shell {
  min-height: 100vh;
  padding: 26px;
}

.mobile-menu-toggle,
.mobile-menu-scrim {
  display: none;
}

.mobile-github-link {
  display: none;
}

.mobile-theme-switch {
  display: none;
}

.mobile-github-link img {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

:root[data-theme='dark'] .mobile-github-link img {
  filter: invert(1);
}

.docs-grid {
  max-width: 1380px;
  margin: 0 auto;
  min-height: calc(100vh - 52px);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
}

.sidebar,
.main-panel,
.demo-card,
.note-card,
.stat-card,
.mini-stage,
.route-pill,
.nav-item {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.sidebar,
.main-panel {
  border-radius: var(--radius-xl);
}

.sidebar {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 26px;
  height: calc(100vh - 52px);
  align-self: start;
  padding: 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 22px;
  overflow: hidden;
}

.brand-stack h1,
.page-header h2,
.demo-card h3,
.note-card h4,
.stat-card h3,
.main-panel h3 {
  margin: 0;
  font-family: var(--font-display);
}

.brand-stack h1 {
  font-size: 1.5rem;
}

.brand-mark,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.brand-mark {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  object-fit: contain;
  image-rendering: pixelated;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-switch {
  width: 38px;
  height: 38px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: var(--panel-soft);
  cursor: pointer;
}

.theme-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1;
}

.theme-segment-dark {
  border-top: 1px solid var(--line);
}

.theme-switch:hover {
  transform: none;
  border-color: var(--brand);
}

.theme-switch[aria-pressed='false'] .theme-segment-light,
.theme-switch[aria-pressed='true'] .theme-segment-dark {
  color: var(--brand-contrast);
  background: var(--brand);
}

.mobile-theme-switch {
  display: none;
}

.muted,
.eyebrow,
.lede,
.note-card p,
.stat-card p,
.page-copy,
.code-caption {
  color: var(--muted);
}

.nav-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 4px 14px;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px 2px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-end::before,
.nav-end::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.project-links {
  display: grid;
  gap: 8px;
  padding: 12px 4px 4px;
}

.project-link {
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.project-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

.cookie-notice {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  width: min(440px, calc(100vw - 48px));
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.cookie-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.nav-item:hover,
.route-link:hover,
button:hover {
  transform: translateY(-1px);
}

.nav-item.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-contrast);
  box-shadow: 0 14px 30px rgba(13, 109, 98, 0.2);
}

.nav-item.is-active .badge {
  background: rgba(255, 255, 255, 0.2);
  color: var(--brand-contrast);
}

.nav-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  padding: 6px 10px;
  font-size: 0.78rem;
  background: rgba(13, 109, 98, 0.12);
  color: var(--brand);
}

.main-panel {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  padding: 28px;
  display: grid;
  gap: 22px;
}

.desktop-tools {
  position: absolute;
  z-index: 5;
  top: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-search {
  --pagefind-ui-scale: 0.62;
  --pagefind-ui-primary: var(--brand);
  --pagefind-ui-text: var(--ink);
  --pagefind-ui-background: var(--panel-strong);
  --pagefind-ui-border: var(--line-strong);
  --pagefind-ui-border-radius: 10px;
  width: min(280px, 34vw);
}

.main-panel .page-header {
  min-height: 42px;
  padding-right: 350px;
}

#pagefind-search .pagefind-ui {
  position: relative;
}

#pagefind-search .pagefind-ui__drawer {
  position: absolute;
  z-index: 1;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: min(66vh, 620px);
  overflow-y: auto;
  padding: 0 18px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

#pagefind-search .pagefind-ui:not(:focus-within) .pagefind-ui__drawer {
  display: none;
}

#pagefind-search .pagefind-ui__result {
  padding: 12px 0 16px;
}

#pagefind-search .pagefind-ui__result-inner {
  margin-top: 0;
}

#pagefind-search .pagefind-ui__result-excerpt {
  margin-top: 0;
  line-height: 1.45;
}

#pagefind-search .pagefind-ui__results-area {
  margin-top: 8px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.page-copy {
  max-width: 72ch;
  line-height: 1.65;
}

.page-grid,
.stat-grid,
.demo-grid,
.feature-details,
.route-stack,
.mini-nav,
.pill-row {
  display: grid;
  gap: 16px;
}

.generated-route-nav {
  display: grid;
  gap: 8px;
}

.route-link-group {
  display: inline-flex;
  flex-wrap: wrap;
  width: fit-content;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-strong);
}

.route-link-group .route-link {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.route-link-group .route-link + .route-link {
  border-left: 1px solid var(--line);
}

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

.feature-details {
  padding-block: 4px;
}

.feature-details section {
  display: grid;
  gap: 8px;
  padding-block: 4px 18px;
  border-bottom: 1px solid var(--line);
}

.feature-details section:last-child {
  border-bottom: 0;
}

.feature-details h3,
.feature-details p {
  margin: 0;
}

.feature-details p {
  max-width: 78ch;
  color: var(--muted);
  line-height: 1.65;
}

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

.getting-started-overview,
.customization-overview {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
}

.getting-started-overview {
  background: linear-gradient(135deg, var(--panel-strong), var(--panel-soft));
}

.getting-started-overview header,
.getting-started-overview h3,
.getting-started-overview p,
.overview-section-header,
.overview-section-header h3,
.overview-section-header p {
  margin: 0;
}

.getting-started-overview header,
.overview-section-header {
  display: grid;
  gap: 6px;
}

.getting-started-overview p,
.overview-section-header p {
  color: var(--muted);
  line-height: 1.55;
}

.overview-examples {
  display: grid;
  gap: 16px;
}

.customization-overview header,
.customization-overview h3,
.customization-overview h4,
.customization-overview p {
  margin: 0;
}

.customization-overview header {
  display: grid;
  gap: 6px;
}

.customization-overview header p {
  color: var(--muted);
  line-height: 1.55;
}

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

.customization-grid > section {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}

.routing-mode-configurations {
  display: grid;
  gap: 12px;
}

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

.routing-mode-grid article {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-soft);
}

.routing-mode-grid article > div {
  display: grid;
  gap: 3px;
}

.routing-mode-grid h5 {
  margin: 0;
  font-size: 0.9rem;
}

.routing-mode-grid article > div > code {
  color: var(--muted);
  font-size: 0.78rem;
}

.option-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.option-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.84rem;
  line-height: 1.45;
}

.option-table th,
.option-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.option-table th {
  color: var(--ink);
  background: var(--panel-soft);
}

.option-table td {
  color: var(--muted);
}

.option-table tr:last-child td {
  border-bottom: 0;
}

.overview-feature {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
}

.overview-feature-copy {
  display: grid;
  gap: 8px;
}

.overview-feature h3,
.overview-feature p {
  margin: 0;
}

.overview-feature p {
  color: var(--muted);
  line-height: 1.55;
}

.overview-syntax {
  font-size: 0.82rem;
}

.example-jump {
  width: fit-content;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-card,
.note-card,
.stat-card {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.demo-card,
.note-card {
  background: var(--panel-strong);
}

.stat-card {
  background: var(--panel-soft);
}

.mini-nav,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.route-link,
button,
.pill-chip {
  appearance: none;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

button.primary,
.route-link.primary,
.route-link.is-active {
  background: var(--brand);
  color: var(--brand-contrast);
  border-color: var(--brand);
}

.mini-stage,
.route-pill {
  border-radius: var(--radius-lg);
}

.mini-stage {
  padding: 18px;
  display: grid;
  gap: 14px;
  background: var(--panel-strong);
}

.route-pill {
  padding: 14px 16px;
  background: rgba(13, 109, 98, 0.06);
  border: 1px dashed var(--line-strong);
}

.code-block {
  position: relative;
  margin: 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--code);
  color: #e8eef8;
  overflow: hidden;
  font-size: 0.92rem;
}

.copy-code-source {
  display: block;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px 16px 52px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #708399 #111a26;
  color: inherit;
  font: inherit;
  white-space: inherit;
}

.copy-code-source::-webkit-scrollbar {
  height: 8px;
}

.copy-code-source::-webkit-scrollbar-track {
  background: #111a26;
}

.copy-code-source::-webkit-scrollbar-thumb {
  border: 2px solid #111a26;
  border-radius: 999px;
  background: #708399;
}

.copy-code-source::-webkit-scrollbar-thumb:hover {
  background: #8da2b9;
}

.code-block.has-copy-button {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.copy-code-button {
  position: absolute;
  top: auto;
  right: 8px;
  bottom: 16px;
  z-index: 1;
  min-width: 62px;
  padding: 6px 9px;
  border-color: #ffffff38;
  border-radius: 8px;
  color: #dce8f5;
  background: #ffffff12;
  font: 700 0.72rem/1 system-ui, sans-serif;
}

.copy-code-button:hover,
.copy-code-button:focus-visible {
  border-color: #8dd6ff;
  color: white;
  background: #ffffff24;
}

.copy-code-button.is-copy-confirmed {
  border-color: #65d6a0;
  color: #caffdf;
  background: #1b8b5c66;
  animation: copy-code-pulse 360ms ease-out;
}

.copy-code-button.is-copy-failed {
  border-color: #ff9d91;
  color: #ffe3df;
  background: #a83b3266;
  animation: copy-code-pulse 360ms ease-out;
}

@keyframes copy-code-pulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px #8dd6ff30;
  }
  100% {
    transform: scale(1);
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .copy-code-button.is-copy-confirmed,
  .copy-code-button.is-copy-failed {
    animation: none;
  }
}

.demo-card > pre.code-block {
  order: -1;
}

.syntax-tag {
  color: #8dd6ff;
}

.syntax-attribute {
  color: #f0bb78;
}

.syntax-string {
  color: #b8e698;
}

.syntax-keyword {
  color: #c7a0ff;
}

.syntax-comment {
  color: #8291a7;
}

.syntax-number {
  color: #f3c989;
}

.inline-grid {
  display: grid;
  gap: 12px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.item-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(27, 35, 48, 0.04);
}

.stage-frame {
  position: relative;
}

.stage-frame > .au-route-enter-active,
.stage-frame > .au-route-leave-active {
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.stage-frame > .au-route-enter-from {
  opacity: 0;
  transform: translateY(12px);
}

.stage-frame > .au-route-leave-active {
  opacity: 0;
  transform: translateY(-12px);
}

.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;
}

.overview-links,
.playground-actions,
.playground-status,
.file-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.playground-page {
  min-width: 0;
}

.playground-header {
  align-items: flex-start;
  gap: 18px;
}

.playground-embedded-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.playground-embedded-header h3,
.playground-embedded-header p {
  margin: 0;
}

.playground-embedded-header p {
  margin-top: 5px;
  color: var(--muted);
}

.playground-page.is-embedded {
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel-soft);
}

.playground-page.is-embedded .playground-workspace {
  min-height: 440px;
  box-shadow: none;
}

.playground-page.is-embedded .code-editor,
.playground-page.is-embedded .code-editor .cm-editor,
.playground-page.is-embedded .code-editor .cm-scroller {
  min-height: 390px;
}

.playground-page.is-embedded .preview-host,
.playground-page.is-embedded .preview-host iframe {
  min-height: 400px;
}

.playground-actions {
  justify-content: flex-end;
}

.playground-actions select,
.playground-actions input {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel-strong);
  color: var(--ink);
}

.route-input {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
}

.route-input input {
  width: 120px;
}

.playground-status {
  justify-content: space-between;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.9rem;
}

.view-mode-switcher {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
}

.view-mode-switcher button {
  padding: 5px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
}

.view-mode-switcher button[aria-pressed='true'] {
  background: var(--brand);
  color: var(--code);
}

.auto-run-progress {
  height: 3px;
  margin: -1px 10px -2px;
  overflow: hidden;
  border-radius: 999px;
  background: transparent;
}

.auto-run-progress::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #34a899;
  transform: scaleX(0);
  transform-origin: left;
}

.auto-run-progress.is-counting::after {
  animation: playground-auto-run 900ms linear forwards;
}

@keyframes playground-auto-run {
  to {
    transform: scaleX(1);
  }
}

.playground-workspace {
  display: flex;
  align-items: stretch;
  min-height: 520px;
  max-height: 650px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.playground-editor-panel {
  width: 52%;
  min-width: 320px;
  max-width: 78%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  resize: horizontal;
  max-height: 650px;
  overflow: hidden;
  border-right: 1px solid var(--line-strong);
  background: var(--code);
}

.playground-workspace.view-code .playground-editor-panel {
  width: 100%;
  max-width: none;
  resize: none;
  border-right: 0;
}

.playground-workspace.view-code .playground-preview-panel,
.playground-workspace.view-preview .playground-editor-panel {
  display: none;
}

.file-tabs {
  padding: 8px;
  background: #111923;
}

.file-tabs button {
  padding: 7px 10px;
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #aebacc;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.8rem;
}

.file-tabs button.is-active {
  border-color: #6bcabd;
  background: rgba(107, 202, 189, 0.14);
  color: var(--brand-contrast);
}

.code-editor {
  width: 100%;
  min-height: 470px;
  background: var(--code);
  overflow: hidden;
}

.code-editor .cm-editor {
  min-height: 470px;
  height: 100%;
  font: 0.88rem/1.55 Consolas, 'Courier New', monospace;
}

.code-editor .cm-scroller {
  min-height: 470px;
  padding: 16px 0;
  overflow: auto;
}

.code-editor .cm-content {
  padding: 0;
  caret-color: #8be0d2;
}

.code-editor .cm-gutters {
  border-right-color: rgba(255, 255, 255, 0.1);
}

.code-editor .cm-focused {
  outline: 1px solid #6bcabd;
  outline-offset: -1px;
}

.playground-preview-panel {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: 650px;
  overflow: hidden;
}

.panel-label {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preview-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.preview-title {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.preview-label code {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.preview-host,
.preview-host iframe {
  width: 100%;
  min-height: 480px;
  height: 100%;
  max-height: 650px;
  border: 0;
  background: white;
}

.preview-host {
  overflow: hidden;
}

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

.playground-output-grid > section {
  min-height: 100px;
  max-height: 190px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-soft);
}

.playground-output-grid h3 {
  margin-bottom: 9px;
}

.diagnostic-entry {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 6px;
  text-align: left;
  border-color: rgba(180, 67, 48, 0.35);
  background: rgba(180, 67, 48, 0.07);
}

.console-entry {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font: 0.82rem/1.4 Consolas, 'Courier New', monospace;
}

.console-entry.error,
.console-entry.warn {
  color: #a13c2d;
}

@media (max-width: 1080px) {
  .docs-grid,
  .page-grid,
  .stat-grid,
  .customization-grid,
  .routing-mode-grid,
  .feature-catalog {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    width: min(340px, 88vw);
    height: 100dvh;
    padding: 16px;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    position: fixed;
    z-index: 40;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--panel-strong);
    color: var(--ink);
    box-shadow: var(--shadow);
    transition: left 180ms ease;
  }

  .mobile-menu-toggle.is-menu-open {
    left: calc(min(340px, 88vw) - 52px);
  }

  .mobile-menu-icon,
  .mobile-menu-icon::before,
  .mobile-menu-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-menu-icon {
    position: relative;
  }

  .mobile-menu-icon::before,
  .mobile-menu-icon::after {
    position: absolute;
    left: 0;
    content: '';
  }

  .mobile-menu-icon::before {
    top: -6px;
  }

  .mobile-menu-icon::after {
    top: 6px;
  }

  .mobile-menu-scrim {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: block;
    background: rgba(24, 32, 44, 0.4);
  }

  .docs-shell {
    padding: 0;
  }

  .docs-shell::before {
    position: fixed;
    z-index: 9;
    top: 0;
    right: 0;
    left: 0;
    height: 64px;
    content: '';
    background: var(--mobile-chrome);
    box-shadow: 0 12px 28px rgba(24, 32, 44, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-18px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .docs-shell.is-scrolled::before {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-github-link {
    display: flex;
    position: fixed;
    z-index: 10;
    top: 14px;
    right: 14px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--mobile-control);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .mobile-theme-switch {
    display: grid;
    position: fixed;
    z-index: 10;
    top: 14px;
    right: 58px;
    box-shadow: var(--shadow);
  }

  .docs-grid {
    display: block;
    min-height: auto;
  }

  .main-panel {
    padding: 8px 12px 12px;
    border-radius: 0;
  }

  .desktop-tools {
    position: sticky;
    z-index: 15;
    top: 8px;
    right: auto;
    display: block;
    width: auto;
    margin: 0 88px 0 48px;
  }

  .desktop-theme-switch {
    display: none;
  }

  .docs-search {
    --pagefind-ui-scale: 0.68;
    width: auto;
    margin: 0;
  }

  .main-panel .page-header {
    min-height: 0;
    padding-right: 0;
  }

  #pagefind-search .pagefind-ui__drawer {
    right: -88px;
    left: -48px;
  }

  .getting-started-overview,
  .customization-overview,
  .overview-feature,
  .feature-details > section {
    padding: 14px;
  }

  .nav-list {
    overflow-y: auto;
  }

  .cookie-notice {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .playground-workspace {
    display: grid;
    max-height: none;
  }

  .playground-editor-panel {
    width: 100%;
    max-width: none;
    resize: vertical;
    height: 650px;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .playground-preview-panel {
    height: 650px;
  }

  .playground-output-grid {
    grid-template-columns: 1fr;
  }
}
