:root,
html[data-theme="light"] {
  --agno-primary: #ff4017;
  --agno-primary-dark: #c92d11;
  --agno-bg: #ffffff;
  --agno-bg-soft: #fafafa;
  --agno-bg-dark: #111113;
  --agno-surface: rgba(255, 255, 255, 0.78);
  --agno-surface-solid: #ffffff;
  --agno-text: #18181b;
  --agno-text-soft: #3f3f46;
  --agno-muted: #71717a;
  --agno-border: #e4e4e7;
  --agno-inline-code-bg: #f4f4f5;
  --agno-inline-code-text: #27272a;
  --agno-code-bg: #ffffff;
  --agno-code-text: #1f2328;
  --agno-code-border: #d0d7de;
  --agno-code-font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --agno-table-head: #fafafa;
  --agno-shadow: 0 24px 70px rgba(17, 17, 19, 0.08);
  --agno-header-bg: rgba(255, 255, 255, 0.86);
  --agno-radial: rgba(255, 64, 23, 0.11);
  --agno-link: #c92d11;
  --agno-link-hover: #ff4017;
  --agno-token-comment: #6e7781;
  --agno-token-keyword: #cf222e;
  --agno-token-string: #0a3069;
  --agno-token-number: #0550ae;
  --agno-token-name: #1f2328;
  --agno-token-function: #953800;
  --agno-token-class: #8250df;
  --agno-token-operator: #1f2328;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --agno-bg: #111113;
    --agno-bg-soft: #18181b;
    --agno-surface: rgba(24, 24, 27, 0.76);
    --agno-surface-solid: #18181b;
    --agno-text: #fafafa;
    --agno-text-soft: #d4d4d8;
    --agno-muted: #a1a1aa;
    --agno-border: #27272a;
    --agno-inline-code-bg: #27272a;
    --agno-inline-code-text: #fafafa;
    --agno-code-bg: #0b0c0e;
    --agno-code-text: #d4d4d4;
    --agno-code-border: #30363d;
    --agno-table-head: #202023;
    --agno-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    --agno-header-bg: rgba(17, 17, 19, 0.86);
    --agno-radial: rgba(255, 64, 23, 0.16);
    --agno-link: #ff7a45;
    --agno-link-hover: #ff4017;
  }
}

html[data-theme="dark"],
html.dark {
  color-scheme: dark;
  --agno-bg: #111113;
  --agno-bg-soft: #18181b;
  --agno-surface: rgba(24, 24, 27, 0.76);
  --agno-surface-solid: #18181b;
  --agno-text: #fafafa;
  --agno-text-soft: #d4d4d8;
  --agno-muted: #a1a1aa;
  --agno-border: #27272a;
  --agno-inline-code-bg: #27272a;
  --agno-inline-code-text: #fafafa;
  --agno-code-bg: #0b0c0e;
  --agno-code-text: #d4d4d4;
  --agno-code-border: #30363d;
  --agno-table-head: #202023;
  --agno-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --agno-header-bg: rgba(17, 17, 19, 0.86);
  --agno-radial: rgba(255, 64, 23, 0.16);
  --agno-link: #ff7a45;
  --agno-link-hover: #ff4017;
  --agno-token-comment: #6a9955;
  --agno-token-keyword: #569cd6;
  --agno-token-string: #ce9178;
  --agno-token-number: #b5cea8;
  --agno-token-name: #9cdcfe;
  --agno-token-function: #dcdcaa;
  --agno-token-class: #4ec9b0;
  --agno-token-operator: #d4d4d4;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, var(--agno-radial), transparent 34rem),
    linear-gradient(180deg, var(--agno-bg) 0%, var(--agno-bg) 44%, var(--agno-bg-soft) 100%);
  color: var(--agno-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--agno-link);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  color: var(--agno-link-hover);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  padding: 0 2rem;
  background: var(--agno-header-bg);
  border-bottom: 1px solid var(--agno-border);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--agno-text);
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.45rem;
  background: var(--agno-primary);
  color: white;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--agno-text-soft);
}

.site-nav .nav-button,
.theme-toggle {
  min-height: 2.25rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 700;
}

.site-nav .nav-button {
  background: var(--agno-bg-dark);
  color: white;
}

html[data-theme="dark"] .site-nav .nav-button,
html.dark .site-nav .nav-button {
  background: #ffffff;
  color: #111113;
}

.theme-toggle {
  border: 1px solid var(--agno-border);
  background: var(--agno-surface-solid);
  color: var(--agno-text-soft);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--agno-primary);
  color: var(--agno-primary);
}

.shell {
  display: grid;
  grid-template-columns: 16rem minmax(0, 52rem);
  gap: 3rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.sidebar {
  position: sticky;
  top: 6.5rem;
  align-self: start;
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border: 1px solid var(--agno-border);
  border-radius: 0.75rem;
  background: var(--agno-surface);
  box-shadow: var(--agno-shadow);
}

.sidebar-label {
  margin: 0 0 0.45rem;
  color: var(--agno-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar a {
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  color: var(--agno-text-soft);
  font-size: 0.93rem;
}

.sidebar a:hover {
  background: rgba(255, 64, 23, 0.08);
  color: var(--agno-link-hover);
}

.content {
  min-width: 0;
}

.content > :first-child {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--agno-text);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.15;
}

h1 {
  max-width: 46rem;
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
}

h2 {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--agno-border);
  font-size: 1.75rem;
}

h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

p,
li {
  color: var(--agno-text-soft);
}

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--agno-primary);
  border-radius: 0.5rem;
  background: rgba(255, 64, 23, 0.08);
}

code {
  padding: 0.12rem 0.32rem;
  border: 1px solid var(--agno-border);
  border-radius: 0.35rem;
  background: var(--agno-inline-code-bg);
  color: var(--agno-inline-code-text);
  font-family: var(--agno-code-font);
  font-size: 0.92em;
}

code,
kbd,
pre,
samp {
  font-family: var(--agno-code-font);
}

pre,
.highlight {
  border-radius: 0.75rem;
  background: var(--agno-code-bg);
}

pre {
  overflow-x: auto;
  margin: 1.25rem 0;
  padding: 1.15rem;
  border: 1px solid var(--agno-code-border);
  box-shadow: var(--agno-shadow);
}

.highlight {
  margin: 1.25rem 0;
  border: 1px solid var(--agno-code-border);
  box-shadow: var(--agno-shadow);
}

.highlight pre {
  margin: 0;
  border: 0;
  box-shadow: none;
}

pre code,
.highlight code {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--agno-code-text);
}

.highlight .c,
.highlight .c1,
.highlight .cm,
.highlight .cp {
  color: var(--agno-token-comment);
  font-style: italic;
}

.highlight .k,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt {
  color: var(--agno-token-keyword);
  font-weight: 700;
}

.highlight .s,
.highlight .s1,
.highlight .s2,
.highlight .sa,
.highlight .sb,
.highlight .sc,
.highlight .sd,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sr,
.highlight .ss {
  color: var(--agno-token-string);
}

.highlight .m,
.highlight .mb,
.highlight .mf,
.highlight .mi,
.highlight .mo,
.highlight .il {
  color: var(--agno-token-number);
}

.highlight .n,
.highlight .na,
.highlight .nb,
.highlight .bp,
.highlight .nv,
.highlight .vc,
.highlight .vg,
.highlight .vi,
.highlight .vm {
  color: var(--agno-token-name);
}

.highlight .nf,
.highlight .fm {
  color: var(--agno-token-function);
  font-weight: 700;
}

.highlight .nc,
.highlight .nn,
.highlight .nt {
  color: var(--agno-token-class);
}

.highlight .o,
.highlight .ow,
.highlight .p {
  color: var(--agno-token-operator);
}

.highlight .err {
  color: #fecaca;
  background: rgba(255, 64, 23, 0.2);
}

table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--agno-border);
  border-radius: 0.75rem;
  background: var(--agno-surface-solid);
}

th,
td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--agno-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--agno-table-head);
  color: var(--agno-text);
  font-size: 0.9rem;
}

td {
  color: var(--agno-text-soft);
}

hr {
  border: 0;
  border-top: 1px solid var(--agno-border);
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .shell {
    grid-template-columns: 1fr;
    padding: 2rem 1rem 4rem;
  }

  .sidebar {
    position: static;
  }
}
