:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f4f3f1;
  --fg: #1c1917;
  --muted: #6b6560;
  --border: #e7e5e4;
  --accent: #f5a524;
  --accent-strong: #d48806;
  --accent-fg: #1c1917;
  --ok: #16a34a;
  --error: #dc2626;
  --code-bg: #f4f3f1;
  --radius: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0b;
    --surface: #161514;
    --surface-2: #1d1c1a;
    --fg: #e7e5e4;
    --muted: #a39e98;
    --border: #2a2826;
    --accent: #f5a524;
    --accent-strong: #fbbf24;
    --ok: #4ade80;
    --error: #f87171;
    --code-bg: #1d1c1a;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

code,
pre {
  font-family: var(--mono);
  font-size: 0.875em;
}

:not(pre) > code {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  line-height: 1.55;
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.muted {
  color: var(--muted);
}

.error {
  color: var(--error);
}

/* Header and footer */

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.925rem;
}

.site-nav a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--fg);
  background: var(--surface-2);
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 72px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-weight: 550;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}

.button:hover {
  border-color: color-mix(in srgb, var(--fg) 25%, var(--border));
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}

.button.primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button.small {
  height: 32px;
  padding: 0 12px;
  font-size: 0.85rem;
}

.button.ghost {
  background: transparent;
}

.button.icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  flex: none;
}

/* Home page */

.hero {
  padding-top: 88px;
  padding-bottom: 56px;
  text-align: center;
}

.hero-logo {
  border-radius: 22px;
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.35);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 28px auto 16px;
  max-width: 14em;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36em;
  margin: 0 auto;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.quickstart {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.qs-step h2 {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.8rem;
}

.qs-step pre {
  font-size: 0.8rem;
}

.qs-step p {
  font-size: 0.875rem;
  margin: 12px 0 0;
}

pre .c {
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 80px;
}

.feature h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.925rem;
}

.help-callout {
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}


.help-callout h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.help-callout p {
  margin: 0;
  color: var(--muted);
  max-width: 40em;
}

@media (max-width: 480px) {
  .nav-github span {
    display: none;
  }
  .site-nav a {
    padding: 6px 8px;
  }
}

@media (max-width: 860px) {
  .quickstart,
  .features {
    grid-template-columns: minmax(0, 1fr);
  }
  .features {
    gap: 20px;
    margin-top: 56px;
  }
  .help-callout {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero {
    padding-top: 56px;
  }
}

/* Help page */

body.page-help {
  height: 100dvh;
  overflow: hidden;
}

body.page-help main {
  display: flex;
  min-height: 0;
}

.chat {
  flex: 1;
  /* Without this the column grows to fit its widest unwrappable line. */
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat .wrap {
  max-width: 800px;
}

.chat-bar {
  border-bottom: 1px solid var(--border);
  position: relative;
}

.chat-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  font-size: 0.875rem;
}

.model-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  min-width: 0;
}

.model-status span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  flex: none;
}

.dot[data-state="loading"] {
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}

.dot[data-state="ready"] {
  background: var(--ok);
}

.dot[data-state="error"] {
  background: var(--error);
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s;
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 32px 0 24px;
  scroll-behavior: smooth;
}

.intro h1 {
  font-size: 1.75rem;
  margin: 24px 0 8px;
}

.intro > p {
  color: var(--muted);
  margin: 0 0 20px;
}

.intro.compact h1,
.intro.compact > p {
  display: none;
}

.notice {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.notice p {
  margin: 0 0 10px;
}

.notice .muted {
  font-size: 0.9rem;
}

.notice .button {
  margin-top: 6px;
}

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

.suggestions[hidden] {
  display: none;
}

.suggestion {
  text-align: left;
  font: inherit;
  font-size: 0.925rem;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  line-height: 1.4;
  transition: border-color 0.15s, background 0.15s;
}

.suggestion:hover {
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .suggestions {
    grid-template-columns: minmax(0, 1fr);
  }
}

.msg {
  margin: 0 0 28px;
}

.msg.user {
  display: flex;
  justify-content: flex-end;
}

.msg.user .bubble {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  max-width: 85%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Work box: reasoning and tool calls, collapsed by default. */

.work {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--surface);
}

.work-head,
.item-head,
.stats-line {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.work-head {
  padding: 8px 12px;
  font-size: 0.875rem;
  background: var(--surface-2);
}

.work-head:hover {
  background: color-mix(in srgb, var(--surface-2) 70%, var(--border));
}

.work-title {
  font-weight: 600;
}

.work-summary {
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work .work-head .spinner {
  display: none;
}

.work.active .work-head .spinner {
  display: inline-block;
}

.work-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.icon {
  display: inline-flex;
  flex: none;
  color: var(--muted);
}

.chevron {
  transition: transform 0.15s;
}

[aria-expanded="true"] > .chevron {
  transform: rotate(90deg);
}

.spinner {
  width: 13px;
  height: 13px;
  flex: none;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}

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

.work-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.item-head {
  padding: 6px 10px;
  font-size: 0.8rem;
}

.item-head:hover {
  background: var(--surface-2);
}

.item-label {
  font-weight: 550;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-name {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.item-args {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-item.reasoning .item-meta {
  margin-right: auto;
}

.item-meta {
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.item-status {
  display: inline-flex;
  flex: none;
}

.work-item.ok .item-status {
  color: var(--ok);
}

.work-item.failed .item-status {
  color: #d97706;
}

.item-body {
  border-top: 1px solid var(--border);
  margin: 0;
  padding: 8px 10px;
  max-height: 340px;
  overflow: auto;
  font-size: 0.78rem;
  background: var(--surface-2);
}

pre.item-body,
.tool-body pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: var(--mono);
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
}

pre.item-body {
  padding: 8px 10px;
  background: var(--surface-2);
}

.item-heading {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 4px;
}

.item-heading:first-child {
  margin-top: 0;
}

@media (max-width: 640px) {
  .item-name,
  .work-summary {
    display: none;
  }
}

.answer {
  overflow-wrap: anywhere;
}

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

.markdown > :last-child {
  margin-bottom: 0;
}

.markdown p,
.markdown ul,
.markdown ol {
  margin: 0 0 14px;
}

.markdown ul,
.markdown ol {
  padding-left: 1.4em;
}

.markdown li + li {
  margin-top: 4px;
}

.markdown h1,
.markdown h2,
.markdown h3,
.markdown h4 {
  font-size: 1.05rem;
  margin: 20px 0 8px;
}

.markdown pre {
  position: relative;
  margin: 0 0 14px;
  font-size: 0.82rem;
}

.markdown table {
  border-collapse: collapse;
  margin: 0 0 14px;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}

.markdown th,
.markdown td {
  border: 1px solid var(--border);
  padding: 6px 10px;
  text-align: left;
}

.markdown blockquote {
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  font: inherit;
  font-family: var(--font);
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}

.markdown pre:hover .copy,
.copy:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .copy {
    opacity: 1;
  }
}

/* Below each response: actions on the left, the status line on the right. */

.msg-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 28px;
  flex-wrap: wrap;
}

.msg-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: -6px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--surface-2);
  color: var(--fg);
}

.icon-button .icon {
  color: inherit;
}

.icon-button.done {
  color: var(--ok);
}

/* On screens with a mouse the actions fade in on hover, like llama-swap's UI. */
@media (hover: hover) {
  .msg.agent .msg-actions .icon-button {
    opacity: 0;
    transition: opacity 0.15s;
  }
  .msg.agent:hover .msg-actions .icon-button,
  .msg.agent .msg-actions .icon-button:focus-visible,
  .msg.agent .msg-actions .icon-button.done {
    opacity: 1;
  }
}

.note {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0 4px;
}

.stats-line {
  width: auto;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.stats-line:hover {
  color: var(--fg);
  background: var(--surface-2);
}

.msg.agent.running .stats-line .chevron {
  display: none;
}

.msg.agent.running .stats-line::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}

.stats-detail {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 6px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.stats-detail dt {
  color: var(--muted);
}

.stats-detail dd {
  margin: 0;
}

.msg .error {
  margin: 8px 0 0;
  font-size: 0.925rem;
}

.composer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 14px 0 10px;
}

.composer-inner {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.composer textarea {
  flex: 1;
  resize: none;
  font: inherit;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 9px 16px;
  min-height: 40px;
  max-height: 200px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.15s;
}

.composer textarea:focus {
  border-color: var(--accent);
}

.composer-note {
  font-size: 0.75rem;
  margin: 8px auto 0;
  text-align: center;
}

[hidden] {
  display: none !important;
}

.suggestion:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.suggestion:disabled:hover {
  border-color: var(--border);
}

/* Docs */

.docs-search input {
  width: 100%;
  font: inherit;
  font-size: 0.9rem;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 12px;
  outline: none;
}

.docs-search input:focus {
  border-color: var(--accent);
}

.docs-home {
  padding-top: 48px;
}

.docs-hero {
  max-width: 640px;
  margin-bottom: 40px;
}

.docs-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 10px;
}

.lede-left {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 20px;
}

.docs-group {
  margin-bottom: 36px;
}

.docs-group h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 12px;
}

.docs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.docs-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s;
}

.docs-card:hover {
  border-color: var(--accent);
}

.docs-card-title {
  font-weight: 600;
  line-height: 1.35;
}

.docs-card-summary {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.docs-layout {
  max-width: 1240px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 200px;
  gap: 40px;
  padding-top: 32px;
}

.docs-layout-search {
  grid-template-columns: 240px minmax(0, 1fr);
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 72px;
  align-self: start;
  max-height: calc(100dvh - 88px);
  overflow-y: auto;
  font-size: 0.875rem;
}

.docs-sidebar .docs-search {
  margin-bottom: 16px;
}

.nav-group {
  margin-bottom: 18px;
}

.nav-group h2,
.docs-toc h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 6px;
}

.docs-nav ul,
.docs-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-nav a,
.docs-toc a {
  display: block;
  padding: 4px 10px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--muted);
  line-height: 1.35;
}

.docs-nav a:hover,
.docs-toc a:hover {
  color: var(--fg);
}

.docs-nav a[aria-current="page"] {
  color: var(--fg);
  background: var(--surface-2);
  font-weight: 550;
}

.docs-toc .toc-3 a {
  padding-left: 22px;
}

.docs-nav-mobile {
  display: none;
}

.docs-article {
  min-width: 0;
}

.docs-crumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 6px;
}

.docs-crumb a {
  color: inherit;
}

.docs-article h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  margin: 0 0 10px;
}

.docs-summary {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 28px;
}

.doc-body {
  overflow-wrap: anywhere;
}

.doc-body h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
  scroll-margin-top: 72px;
}

.doc-body h3 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
  scroll-margin-top: 72px;
}

.doc-body p,
.doc-body ul,
.doc-body ol {
  margin: 0 0 16px;
}

.doc-body li + li {
  margin-top: 4px;
}

.doc-body pre {
  margin: 0 0 18px;
  font-size: 0.82rem;
}

.doc-body table {
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}

.doc-body th,
.doc-body td {
  border: 1px solid var(--border);
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
}

.doc-body th {
  background: var(--surface-2);
}

.doc-body blockquote {
  margin: 0 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}

.doc-body a {
  text-decoration-color: var(--accent);
}

.config-section {
  scroll-margin-top: 72px;
}

.config-section h2 {
  font-family: var(--mono);
  font-size: 1.15rem;
}

.anchor {
  text-decoration: none;
}

.anchor:hover::after {
  content: " #";
  color: var(--muted);
}

.docs-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

.search-results {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.search-id {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin: 2px 0 6px;
}

.search-snippet {
  font-size: 0.78rem;
  max-height: 160px;
  overflow: hidden;
  white-space: pre-wrap;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .docs-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .docs-toc {
    display: none;
  }
}

@media (max-width: 760px) {
  .docs-layout,
  .docs-layout-search {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 16px;
  }
  .docs-sidebar {
    display: none;
  }
  .docs-nav-mobile {
    display: block;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 20px;
    background: var(--surface);
    font-size: 0.9rem;
  }
  .docs-nav-mobile summary {
    cursor: pointer;
    font-weight: 550;
  }
  .docs-nav-mobile .docs-search {
    margin: 12px 0;
  }
  .docs-home {
    padding-top: 28px;
  }
}

/* The "Chat with the docs" tile on the docs index. */

.chat-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--fg);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border));
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    var(--surface);
  box-shadow: 0 8px 24px -16px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.chat-tile:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--accent) 80%, transparent);
}

.chat-tile-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-fg);
}

.chat-tile-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.chat-tile-title {
  font-weight: 650;
  font-size: 1.05rem;
}

.chat-tile-body {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.chat-tile-go {
  margin-left: auto;
  flex: none;
  font-size: 1.3rem;
  color: var(--accent-strong);
  transition: transform 0.15s;
}

.chat-tile:hover .chat-tile-go {
  transform: translateX(3px);
}

.intro .docs-crumb {
  margin: 24px 0 -16px;
}
