@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";

@font-face {
  font-family: "Newsreader";
  src: url("/font/Newsreader.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/font/Inter.woff2") format("woff2");
  font-display: swap;
}

@custom-variant dark (&:is(.dark *));

@theme {
  --font-newsreader: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --font-inter: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
}

html[lang^="zh"] em,
html[lang^="zh"] i,
html[lang^="zh"] .italic {
  font-style: normal !important;
}

/* Original light palette */
:root {
  --bg: #fefbf9;
  --surface: #ffffff;
  --text: #1c1c1c;
  --text-muted: #6b6b6b;
  --border: #eae8e7;
  --accent: #1c1c1c;
  --mascot-accent: #d97706;
  --logo-paw: #a8a29e;
  --logo-paw-soft: #d6d3d1;
  --color-primary: #ff9d4d;
  --color-secondary: #fde8d7;
  --color-text: rgba(20, 20, 19, 0.88);
  --color-text-secondary: rgba(20, 20, 19, 0.65);
  --color-text-tertiary: rgba(20, 20, 19, 0.45);
  --color-fill-tertiary: rgba(205, 208, 220, 0.15);
  --color-card-fill: rgba(43, 18, 0, 0.02);
  --color-fill-secondary: rgba(43, 18, 0, 0.08);
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --chart-1: oklch(0.87 0 0);
  --chart-2: oklch(0.556 0 0);
  --chart-3: oklch(0.439 0 0);
  --chart-4: oklch(0.371 0 0);
  --chart-5: oklch(0.269 0 0);
  --radius: 0.625rem;
  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: oklch(0.205 0 0);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
}

:root {
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 5rem;
  --space-8: 6rem;
  --container: min(100% - var(--space-4), 64rem);
}

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

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-inter);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
}

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Only style "plain" anchors; allow utility classes to win */
a:not([class]) {
  color: var(--text);
  text-decoration: none;
}

a:not([class]):hover {
  color: var(--text-muted);
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

@keyframes qwenpaw-channels-marquee-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

@keyframes qwenpaw-channels-marquee-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  [style*="qwenpaw-channels-marquee"] {
    animation-play-state: paused !important;
  }
}

@keyframes qwenpaw-dash-move-right {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 16px 0;
  }
}

@keyframes qwenpaw-dash-move-left {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: -16px 0;
  }
}

@keyframes qwenpaw-dash-move-down {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 16px;
  }
}

@keyframes qwenpaw-dash-move-up {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 -16px;
  }
}

@keyframes qwenpaw-hero-trim-path {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* Docs: markdown content */
.docs-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.docs-content > * + * {
  margin-top: 0;
}

.docs-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.docs-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: var(--space-6) 0 var(--space-2);
  scroll-margin-top: var(--space-8);
}

.docs-content h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: var(--space-4) 0 var(--space-1);
  scroll-margin-top: var(--space-8);
}

.docs-content p {
  margin: 0 0 var(--space-3);
}

.docs-content ul,
.docs-content ol {
  margin: 0 0 var(--space-3);
  padding-left: 1.5rem;
}

.docs-content ul {
  list-style-type: disc;
}

.docs-content ol {
  list-style-type: decimal;
}

.docs-content ul li::marker {
  color: #4a4a4a !important;
}

.docs-content ol li::marker {
  color: #4a4a4a !important;
}

.docs-content li {
  margin: 0.25rem 0;
}

.docs-content li > p {
  margin: 0;
}

/* Blog article body */
.blog-content {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.blog-related-card {
  margin: 0 0 1.5rem;
  padding: 1rem 1.125rem;
  border: 1px solid #dcc1b2;
  border-radius: 0.75rem;
  background: #fffaf6;
}

.blog-related-card__heading {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text, #1a1a1a);
}

.blog-related-card__desc {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-tertiary, #6b5e56);
}

.blog-related-card__list {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  list-style: disc;
}

.blog-related-card__list li {
  margin: 0.4rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-tertiary, #6b5e56);
}

.blog-related-card__item-label,
.blog-related-card__item-name {
  font-weight: 600;
  color: var(--color-text, #1a1a1a);
}

.blog-related-card__link {
  font-weight: 500;
  color: var(--color-primary, #e36c2d);
  text-decoration: none;
}

.blog-related-card__link:hover {
  text-decoration: underline;
}

.blog-related-card__cta {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
}

.blog-content hr {
  margin: 1rem 0 1.25rem;
  border: 0;
  border-top: 1px solid #dcc1b2;
}

.blog-content a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-content--sessions > p:first-child,
.blog-content--sessions > hr:first-of-type {
  display: none;
}

.blog-content--sessions > p:has(strong) {
  margin-top: 1.125rem;
  margin-bottom: 0.25rem;
}

.blog-content--sessions > p:has(strong) strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
}

.blog-content--sessions > p:not(:has(strong)) {
  margin-bottom: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.docs-content.blog-content--sessions a {
  color: #6a97ff;
  text-decoration: none;
}

.docs-content.blog-content--sessions a:hover {
  color: #5280e6;
  text-decoration: none;
}

@media (min-width: 640px) {
  .blog-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  .blog-content--sessions > p:has(strong) strong {
    font-size: 0.9375rem;
  }

  .blog-content--sessions > p:not(:has(strong)) {
    font-size: 0.875rem;
  }
}

/* Release notes list styling: ensure list markers are visible on white background */
.release-notes-content ul {
  list-style-type: disc;
}

.release-notes-content ol {
  list-style-type: decimal;
}

.release-notes-content ul,
.release-notes-content ol {
  color: var(--text) !important;
}

.release-notes-content ul li {
  color: var(--text) !important;
}

.release-notes-content ol li {
  color: var(--text) !important;
}

.release-notes-content ul li::marker {
  color: #4a4a4a !important;
}

.release-notes-content ol li::marker {
  color: #4a4a4a !important;
  font-weight: 600;
}

.docs-content pre {
  margin: var(--space-3) 0;
  padding: var(--space-4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Code block: dark background + high-contrast text (target our wrapper) */
.docs-content .docs-code-wrap pre {
  padding: var(--space-4);
  margin: 0;
  padding-top: 2.5rem;
  background: #0d1117 !important;
  border: 1px solid #30363d;
  border-radius: 0.5rem;
  color: #f0f6fc !important;
}

.docs-content .docs-code-wrap pre code,
.docs-content .docs-code-wrap pre code *,
.docs-content .docs-code-wrap pre .hljs,
.docs-content .docs-code-wrap pre .hljs * {
  color: #f0f6fc !important;
  background: transparent !important;
}
.docs-content .docs-code-wrap pre .hljs-keyword,
.docs-content .docs-code-wrap pre .hljs-meta .hljs-keyword,
.docs-content .docs-code-wrap pre .hljs-doctag {
  color: #ff7b72 !important;
}
.docs-content .docs-code-wrap pre .hljs-built_in,
.docs-content .docs-code-wrap pre .hljs-title,
.docs-content .docs-code-wrap pre .hljs-function .hljs-title {
  color: #d2a8ff !important;
}
.docs-content .docs-code-wrap pre .hljs-string,
.docs-content .docs-code-wrap pre .hljs-regexp,
.docs-content .docs-code-wrap pre .hljs-meta .hljs-string {
  color: #a5d6ff !important;
}
.docs-content .docs-code-wrap pre .hljs-number {
  color: #79c0ff !important;
}
.docs-content .docs-code-wrap pre .hljs-comment {
  color: #8b949e !important;
}
.docs-content .docs-code-wrap pre .hljs-attr,
.docs-content .docs-code-wrap pre .hljs-variable.hljs-language_,
.docs-content .docs-code-wrap pre .hljs-params {
  color: #79c0ff !important;
}
.docs-content .docs-code-wrap pre .hljs-name,
.docs-content .docs-code-wrap pre .hljs-selector-tag,
.docs-content .docs-code-wrap pre .hljs-selector-class,
.docs-content .docs-code-wrap pre .hljs-selector-id {
  color: #7ee787 !important;
}
.docs-content .docs-code-wrap pre .hljs-subst {
  color: #f0f6fc !important;
}

.docs-code-wrap {
  position: relative;
  margin: var(--space-3) 0;
}

.docs-code-copy {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.375rem;
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
}

.docs-code-copy:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
}

.docs-content code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.875em;
}

.docs-content pre code {
  padding: 0;
  background: none;
  border: none;
  font-size: 1em;
}

.docs-content pre code.hljs {
  padding: 0;
}

/* QuickStart code block syntax highlighting */
pre code.hljs {
  display: block;
  overflow-x: auto;
  background: transparent !important;
}

pre code.hljs .hljs-keyword,
pre code.hljs .hljs-selector-tag,
pre code.hljs .hljs-literal,
pre code.hljs .hljs-section,
pre code.hljs .hljs-link,
pre code.hljs .hljs-built_in {
  color: #d73a49 !important;
  font-weight: 600;
}

pre code.hljs .hljs-string,
pre code.hljs .hljs-regexp,
pre code.hljs .hljs-addition,
pre code.hljs .hljs-attribute,
pre code.hljs .hljs-meta .hljs-string {
  color: #22863a !important;
}

pre code.hljs .hljs-title,
pre code.hljs .hljs-class .hljs-title,
pre code.hljs .hljs-title.class_ {
  color: #6f42c1 !important;
}

pre code.hljs .hljs-variable,
pre code.hljs .hljs-template-variable,
pre code.hljs .hljs-type,
pre code.hljs .hljs-selector-class,
pre code.hljs .hljs-selector-attr,
pre code.hljs .hljs-selector-pseudo,
pre code.hljs .hljs-number {
  color: #005cc5 !important;
}

pre code.hljs .hljs-comment,
pre code.hljs .hljs-quote,
pre code.hljs .hljs-deletion,
pre code.hljs .hljs-meta {
  color: #6a737d !important;
  font-style: italic;
}

pre code.hljs .hljs-params,
pre code.hljs .hljs-attr {
  color: #e36209 !important;
}

.docs-content :not(pre) > code {
  padding: 0.15em 0.4em;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
}

.docs-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  margin: var(--space-4) 0;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.docs-table-wrap::-webkit-scrollbar {
  height: 0.375rem;
}

.docs-table-wrap::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 0 0 0.5rem 0.5rem;
}

.docs-table-wrap::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 0.25rem;
}

.docs-content table {
  width: 100%;
  min-width: min-content;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.docs-content .docs-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.docs-content .docs-table-wrap td {
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 28rem;
}

.docs-content .docs-table-wrap td code {
  word-break: break-all;
  overflow-wrap: anywhere;
  font-size: 0.8125rem;
}

/* Two-column table: equal columns, no forced min-width */
.docs-content .docs-table-wrap table:has(th:nth-child(2):last-child) {
  min-width: 0;
  table-layout: fixed;
}

.docs-content .docs-table-wrap table:has(th:nth-child(2):last-child) th,
.docs-content .docs-table-wrap table:has(th:nth-child(2):last-child) td {
  width: 50%;
  box-sizing: border-box;
  /* Symmetric two-column tables (e.g. community QR): center both columns.
     Global td:first-child was left-aligned while column 2 was centered. */
  text-align: center;
}

.docs-content
  .docs-table-wrap
  table:has(th:nth-child(2):last-child)
  th:first-child,
.docs-content
  .docs-table-wrap
  table:has(th:nth-child(2):last-child)
  td:first-child {
  border-right: 1px solid var(--border);
}

.docs-content thead {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}

.docs-content th {
  text-align: left;
  padding: var(--space-2) var(--space-3);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid var(--border);
}

.docs-content th:not(:first-child) {
  text-align: center;
  min-width: 2.75rem;
}

.docs-content td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.docs-content td:first-child {
  font-weight: 500;
}

.docs-content td:not(:first-child) {
  text-align: center;
}

.docs-content .docs-table-wrap table:has(th:nth-child(2):last-child) th {
  white-space: normal;
}

.docs-content tbody tr:last-child td {
  border-bottom: none;
}

.docs-content tbody tr:hover {
  background: var(--bg);
}

.docs-content blockquote {
  margin: var(--space-3) 0;
  padding: 0 0 0 var(--space-4);
  border-left: 4px solid var(--border);
  color: var(--text-muted);
}

.docs-content blockquote p {
  margin: 0;
}

.docs-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.docs-content a:hover {
  color: var(--text-muted);
}

.docs-content img {
  max-width: min(100%, 36rem);
  max-height: 20rem;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.docs-content img.docs-title-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 270px;
  max-height: none;
  object-fit: cover;
}

.docs-content video {
  max-width: min(100%, 36rem);
  max-height: 20rem;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.docs-content td img {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
}

.docs-content strong {
  font-weight: 600;
}

.docs-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-5) 0;
}

/* Mermaid diagrams */
.mermaid-diagram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-3) 0;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow-x: auto;
  text-align: center;
}

.mermaid-diagram.is-loading {
  overflow: hidden;
}

.mermaid-diagram__placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border-radius: 0.375rem;
  background: linear-gradient(
      90deg,
      rgba(28, 28, 28, 0.04) 0%,
      rgba(28, 28, 28, 0.08) 50%,
      rgba(28, 28, 28, 0.04) 100%
    ),
    linear-gradient(rgba(168, 162, 158, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 162, 158, 0.14) 1px, transparent 1px);
  background-size:
    220px 100%,
    100% 1.5rem,
    1.5rem 100%;
  background-position:
    -220px 0,
    0 0,
    0 0;
  animation: mermaid-placeholder-shimmer 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .mermaid-diagram__placeholder {
    animation: none;
    background-position:
      0 0,
      0 0,
      0 0;
  }
}
.mermaid-diagram__content {
  width: 100%;
}

.mermaid-diagram__content svg,
.mermaid-diagram svg {
  max-width: 100%;
  height: auto;
}

@keyframes mermaid-placeholder-shimmer {
  from {
    background-position:
      -220px 0,
      0 0,
      0 0;
  }

  to {
    background-position:
      calc(100% + 220px) 0,
      0 0,
      0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  @keyframes mermaid-placeholder-shimmer {
    from {
      background-position:
        0 0,
        0 0,
        0 0;
    }

    to {
      background-position:
        0 0,
        0 0,
        0 0;
    }
  }
}
.mermaid-error {
  margin: var(--space-3) 0;
  padding: var(--space-3);
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 0.5rem;
  color: #991b1b;
  font-size: 0.875rem;
}

/* Docs layout: left nav + center scroll + right TOC, only center scrolls */
.docs-layout {
  display: flex;
  height: calc(100vh - 3.5rem);
  width: 100%;
  max-width: 85rem;
  margin: 0 auto;
  overflow: hidden;
}

.docs-layout .docs-sidebar {
  flex-shrink: 0;
  margin-left: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.docs-search-result:hover {
  background: var(--bg);
}

.docs-search-result-link:hover {
  background: var(--bg);
  border-color: var(--text-muted);
}

.docs-search-results-page .docs-search-highlight {
  background: rgba(217, 119, 6, 0.2);
  color: inherit;
  padding: 0 0.1em;
  border-radius: 0.15em;
  font-weight: 500;
}

.docs-main {
  flex: 1;
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-4) 0 var(--space-4);
  overflow: hidden;
  min-width: 0;
}

.docs-main .docs-content-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-right: var(--space-2);
}

.docs-main .docs-content {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.docs-page-footer {
  flex-shrink: 0;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.docs-toc {
  flex-shrink: 0;
  width: 12rem;
  align-self: start;
  max-height: 100%;
  overflow-y: auto;
  margin-right: 0;
}

.docs-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  border-left: 1px solid var(--border);
  padding-left: var(--space-1);
}

.docs-toc-item {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
  text-decoration: none;
  padding: 2px 0;
  line-height: 1.4;
  padding-left: var(--space-1);
  position: relative;
}

.docs-toc-item:hover {
  color: var(--text);
}

.docs-toc-item[data-active="true"] {
  color: var(--color-text);
  font-weight: 500;
}

.docs-toc-item[data-active="true"]::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-1) - 3px);
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
}

.docs-toc-item-h3 {
  padding-left: var(--space-3);
  font-size: 0.75rem;
}

/* Floating back-to-top button */
.docs-back-to-top {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.docs-back-to-top:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .docs-toc {
    display: none;
  }

  .docs-main {
    gap: 0;
    padding: var(--space-2) var(--space-2) 0 var(--space-2);
  }

  .docs-main .docs-content-scroll {
    padding-right: 0;
  }

  .docs-back-to-top {
    right: var(--space-3);
    bottom: var(--space-5);
  }
}

@theme inline {
  --font-heading: var(--font-sans);
  --font-sans: var(--font-inter);
  --font-heading: var(--font-newsreader);
  --color-sidebar-ring: var(--sidebar-ring);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar: var(--sidebar);
  --color-chart-5: var(--chart-5);
  --color-chart-4: var(--chart-4);
  --color-chart-3: var(--chart-3);
  --color-chart-2: var(--chart-2);
  --color-chart-1: var(--chart-1);
  --color-ring: var(--ring);
  --color-input: var(--input);
  --color-border: var(--border);
  --color-destructive: var(--destructive);
  --color-accent-foreground: var(--accent-foreground);
  --color-accent: var(--accent);
  --color-muted-foreground: var(--muted-foreground);
  --color-muted: var(--muted);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-secondary: var(--secondary);
  --color-primary-foreground: var(--primary-foreground);
  --color-primary: var(--primary);
  --color-popover-foreground: var(--popover-foreground);
  --color-popover: var(--popover);
  --color-card-foreground: var(--card-foreground);
  --color-card: var(--card);
  --color-foreground: var(--foreground);
  --color-background: var(--background);
  --color-surface: var(--surface);
  --color-site-bg: var(--bg);
  --color-site-text: var(--text);
  --color-site-text-muted: var(--text-muted);
  --color-mascot-accent: var(--mascot-accent);
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.4);
  --radius-2xl: calc(var(--radius) * 1.8);
  --radius-3xl: calc(var(--radius) * 2.2);
  --radius-4xl: calc(var(--radius) * 2.6);
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.205 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.922 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.556 0 0);
  --chart-1: oklch(0.87 0 0);
  --chart-2: oklch(0.556 0 0);
  --chart-3: oklch(0.439 0 0);
  --chart-4: oklch(0.371 0 0);
  --chart-5: oklch(0.269 0 0);
  --sidebar: oklch(0.205 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.488 0.243 264.376);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(1 0 0 / 10%);
  --sidebar-ring: oklch(0.556 0 0);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
  html {
    @apply font-sans;
  }
}
