:root {
  color-scheme: light;
  --bg: #f6f4f1;
  --surface: #ffffff;
  --surface-muted: #efede9;
  --text: #25232b;
  --text-muted: #6a6672;
  --line: #d8d2ca;
  --brand: #a71d1d;
  --brand-strong: #861717;
  --brand-logo: #a71d1d;
  --accent-tasks: var(--brand);
  --accent-finder: #2563eb;
  --accent-filters: #9333ea;
  --accent-calendar: #c05621;
  --accent-kanban: #16a34a;
  --accent-pinned: #ca8a04;
  --accent-time: #0891b2;
  --accent-core: #4c1d95;
  --accent-discord: #5865f2;
  --shadow: 0 18px 60px rgba(44, 38, 30, 0.14);
  --max: 1180px;
  --footer-top-columns: minmax(260px, 1fr) minmax(360px, 0.95fr);
  --footer-links-columns: repeat(2, minmax(130px, 1fr));
  --header-h: 64px;
  --anchor-gap: 18px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121113;
  --surface: #1b1a1f;
  --surface-muted: #242229;
  --text: #f5f1ea;
  --text-muted: #b5adbd;
  --line: #3a3640;
  --brand: #a71d1d;
  --brand-strong: #861717;
  --brand-logo: #a71d1d;
  --accent-tasks: var(--brand);
  --accent-finder: #6ea8ff;
  --accent-filters: #d8b4fe;
  --accent-calendar: #fb923c;
  --accent-kanban: #86efac;
  --accent-pinned: #facc15;
  --accent-time: #67e8f9;
  --accent-core: #a78bfa;
  --accent-discord: #8ea1ff;
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--anchor-gap));
}

body {
  margin: 0;
  padding-top: var(--header-h);
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter", "Figtree", ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar {
  width: min(var(--max), calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 1023px) {
  :root {
    --footer-top-columns: 1fr;
    --footer-links-columns: repeat(2, minmax(120px, 1fr));
  }

  .footer-top {
    gap: 28px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-syntax {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.brand-brace,
.brand-colon {
  color: var(--brand-logo);
}

.brand-brace {
  font-size: 0.96em;
}

.brand-colon {
  margin-left: 0.02em;
  font-size: 0.86em;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1.5px solid color-mix(in srgb, var(--brand-logo) 68%, transparent);
  border-radius: 6px;
  color: var(--brand-logo);
  background: radial-gradient(circle at 38% 38%, color-mix(in srgb, var(--brand-logo) 12%, transparent), color-mix(in srgb, var(--brand-logo) 5%, transparent));
  box-shadow: 0 0 5px 1px color-mix(in srgb, var(--brand-logo) 12%, transparent), inset 0 0 5px color-mix(in srgb, var(--brand-logo) 8%, transparent);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.brand-mark i,
.brand-mark svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.9;
}

.brand:hover .brand-mark {
  border-color: color-mix(in srgb, var(--brand-logo) 82%, transparent);
  background: radial-gradient(circle at 38% 38%, color-mix(in srgb, var(--brand-logo) 18%, transparent), color-mix(in srgb, var(--brand-logo) 8%, transparent));
  box-shadow: 0 0 11px 2px color-mix(in srgb, var(--brand-logo) 24%, transparent), inset 0 0 7px color-mix(in srgb, var(--brand-logo) 14%, transparent);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.language-picker {
  display: none;
  position: relative;
}

.icon-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: 6px;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.star-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.star-button i,
.star-button svg {
  flex: 0 0 auto;
  width: 16px !important;
  height: 16px !important;
  transition: transform 0.3s ease, color 0.18s ease, fill 0.18s ease;
}

.star-button .star-icon-gh {
  color: var(--text-muted);
}

.star-button .star-icon-star {
  width: 14px !important;
  height: 14px !important;
  color: var(--text-muted);
  opacity: 0.72;
}

.install-button {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.install-button .install-icon-obsidian {
  width: 15px !important;
  height: 17px !important;
  color: var(--text-muted);
}

.install-button .install-icon-sparkles {
  width: 14px !important;
  height: 14px !important;
  color: var(--text-muted);
  opacity: 0.72;
}

.discord-button {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.discord-button .discord-icon {
  width: 16px !important;
  height: 16px !important;
  filter: grayscale(1) saturate(0) opacity(0.72);
  transition: filter 0.18s ease, transform 0.3s ease;
}

.discord-button .discord-icon-community {
  width: 14px !important;
  height: 14px !important;
  color: var(--text-muted);
  opacity: 0.72;
}

.star-button:hover {
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  box-shadow: 0 0 22px color-mix(in srgb, var(--brand) 22%, transparent);
}

.install-button:hover {
  background: color-mix(in srgb, var(--accent-core) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent-core) 62%, var(--line));
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent-core) 24%, transparent);
}

.install-button:hover .install-icon-obsidian {
  transform: scale(1.08);
  color: var(--accent-core);
}

.install-button:hover .install-icon-sparkles {
  transform: rotate(18deg) scale(1.18);
  color: var(--accent-core);
  opacity: 1;
}

.discord-button:hover {
  background: color-mix(in srgb, var(--accent-discord) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent-discord) 62%, var(--line));
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent-discord) 24%, transparent);
}

.discord-button:hover .discord-icon {
  filter: none;
  transform: scale(1.08);
}

.discord-button:hover .discord-icon-community {
  transform: rotate(8deg) scale(1.14);
  color: var(--accent-discord);
  opacity: 1;
}

.star-button:hover .star-icon-star {
  transform: rotate(72deg) scale(1.18);
  color: var(--brand);
  fill: currentColor;
  opacity: 1;
}

.star-button:hover .star-icon-gh {
  color: var(--text);
}

.star-button:active {
  transform: scale(0.97);
}

.icon-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
  cursor: pointer;
}

.theme-button {
  min-width: 38px;
  padding: 0;
}

.theme-icon {
  transition: color 0.15s ease, transform 0.15s ease;
}

[data-theme="dark"] .theme-icon-dark,
[data-theme="light"] .theme-icon-light {
  display: none;
}

[data-theme="dark"] .theme-button:hover .theme-icon-light {
  color: var(--accent-pinned);
  transform: rotate(12deg) scale(1.08);
}

[data-theme="light"] .theme-button:hover .theme-icon-dark {
  color: var(--accent-finder);
  transform: rotate(-8deg) scale(1.08);
}

.language-button {
  min-width: 78px;
}

.chevron-icon {
  width: 15px !important;
  height: 15px !important;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.language-menu button {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
}

.language-menu button:hover,
.language-menu button[aria-checked="true"] {
  background: var(--surface-muted);
}

.language-menu button[aria-checked="true"]::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.language-code {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.icon-button svg,
.primary-button svg,
.secondary-button svg,
.task-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

/* ─── Entrance animation ─────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy > * {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.18s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.28s; }

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  --hero-copy-inset-left: 16px;
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0 32px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--brand) 55%, transparent),
    transparent
  );
  pointer-events: none;
}

.hero-media {
  position: relative;
  z-index: 0;
  width: 100%;
  align-self: stretch;
  justify-self: stretch;
  overflow: hidden;
  border-radius: 6px;
  opacity: 1;
  filter: saturate(1) contrast(1.02);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #121113 80%, transparent) 0%,
    color-mix(in srgb, #121113 38%, transparent) 20%,
    transparent 40%
  );
  pointer-events: none;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: clamp(14px, 1.6vw, 22px);
  left: var(--hero-copy-inset-left);
  width: min(500px, calc(100% - var(--hero-copy-inset-left) - 16px));
  max-width: 500px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 4px 12px;
  border: 1px solid color-mix(in srgb, var(--text-muted) 34%, var(--line));
  border-radius: 6px;
  background: transparent;
  color: color-mix(in srgb, var(--text-muted) 88%, var(--text));
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

h1,
h2 {
  margin: 0;
  font-family: inherit;
  letter-spacing: -0.03em;
  line-height: 1.03;
}

h1 {
  font-size: clamp(3.8rem, 11.8vw, 9.8rem);
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(3.25rem, 7.1vw, 6.25rem);
}



.syntax-title {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  line-height: 0.84;
  white-space: nowrap;
}

.syntax-brace,
.syntax-colon {
  color: var(--brand-logo);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0;
}

.syntax-brace {
  height: 0.72em;
  font-size: 0.8em;
  line-height: 0.72;
  transform: translateY(-0.015em);
}

.syntax-colon {
  font-size: 0.66em;
  align-self: flex-end;
  padding-bottom: 0.06em;
  transform: none;
}

.syntax-word {
  line-height: 0.84;
}

.syntax-open {
  margin-right: 0.025em;
}

.syntax-close {
  margin-left: 0.025em;
}

h2 {
  max-width: 720px;
  font-size: clamp(2.3rem, 6vw, 5rem);
  font-weight: 800;
  overflow-wrap: break-word;
}

.hero-lede,
.section-intro p,
.site-footer p {
  color: var(--text-muted);
}

.hero-lede {
  max-width: 560px;
  margin: clamp(28px, 3vw, 42px) 0 0;
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
  font-weight: 500;
  color: color-mix(in srgb, var(--text) 74%, var(--text-muted));
  overflow-wrap: break-word;
}

.hero > .hero-lede {
  display: block;
  margin: 20px auto 0;
  text-align: center;
}

.hero > .eyebrow {
  align-self: flex-start;
  margin: 20px var(--hero-copy-inset-left) 14px;
}

.hero-copy .eyebrow {
  display: none;
}

.hero-copy .syntax-brace,
.hero-copy .syntax-colon {
  color: var(--brand-logo);
}

.hero-copy .syntax-word {
  color: #f5f1ea;
}

.primary-button,
.secondary-button {
  padding: 0 16px;
  border: 1px solid transparent;
}

.primary-button {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: white;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--brand) 32%, transparent);
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--brand-strong) 0%, var(--brand-strong) 100%);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--brand) 42%, transparent);
  transform: translateY(-1px);
}

.secondary-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.secondary-button:hover,
.icon-button:hover {
  background: var(--surface-muted);
  transform: translateY(-1px);
}

.feature-section {
  --section-accent: var(--brand);
  scroll-margin-top: calc(var(--header-h) + var(--anchor-gap));
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(22px, 3.6vw, 38px) 0 clamp(28px, 4.5vw, 48px);
}

#tasks {
  --section-accent: var(--accent-tasks);
}

#finder {
  --section-accent: var(--accent-finder);
}

#calendar {
  --section-accent: var(--accent-calendar);
}

#kanban {
  --section-accent: var(--accent-kanban);
}

#time-tracking {
  --section-accent: var(--accent-time);
}

#task-editor {
  --section-accent: var(--accent-core);
}

.feature-section .eyebrow {
  border-color: color-mix(in srgb, var(--text-muted) 34%, var(--line));
  background: transparent;
  color: color-mix(in srgb, var(--text-muted) 88%, var(--text));
}

.section-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  order: 3;
  gap: 7px;
  margin: 16px 0 0;
}

.surface-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 3px 10px;
  border: 1px solid color-mix(in srgb, var(--text-muted) 34%, var(--line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 48%, transparent);
  color: color-mix(in srgb, var(--text-muted) 88%, var(--text));
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

.surface-pill svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  stroke-width: 2.4;
  color: color-mix(in srgb, var(--text-muted) 84%, var(--text));
}

.section-intro {
  display: flex;
  flex-direction: column;
  max-width: 820px;
}

.section-intro h2 {
  order: 1;
}

.section-intro p {
  order: 2;
}

.section-intro p:last-child {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.task-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(310px, 0.78fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
  margin-top: clamp(28px, 5vw, 48px);
}

.mini-showcase {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
}

.task-list {
  display: grid;
  gap: 8px;
}

.task-card {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: default;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.task-card:hover {
  border-color: transparent;
  background: transparent;
}

.task-card[aria-pressed="true"] {
  border-color: transparent;
  background: transparent;
}

.task-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--section-accent);
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.task-card[aria-pressed="true"] .task-icon {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}

.task-card:hover .task-icon,
.task-card:focus-visible .task-icon {
  border-color: var(--line);
  background: var(--surface);
}

.static-feature .task-card {
  cursor: default;
}

.task-text {
  min-width: 0;
}

.task-text strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.25;
}

.task-text span {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}

@media (max-width: 720px) {
  .task-card {
    padding: 12px 14px;
  }

  .task-text strong {
    font-size: 0.98rem;
  }

  .task-text span {
    margin-top: 4px;
    font-size: 0.9rem;
    line-height: 1.38;
  }
}

.screenshot-panel {
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--section-accent) 24%, var(--line));
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.screenshot-panel:hover,
.screenshot-panel:focus-within {
  border-color: color-mix(in srgb, var(--section-accent) 42%, var(--line));
  box-shadow:
    var(--shadow),
    0 0 0 1px color-mix(in srgb, var(--section-accent) 14%, transparent),
    0 0 42px color-mix(in srgb, var(--section-accent) 10%, transparent);
}

.screenshot-panel:focus-visible {
  outline: 2px solid var(--section-accent);
  outline-offset: 4px;
}

.screenshot-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.red {
  background: #e85a4f;
}

.amber {
  background: #e0a33a;
}

.green {
  background: #48a868;
}

.screenshot-title {
  min-width: 0;
  margin-left: 6px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screenshot-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-muted);
}

.screenshot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      color-mix(in srgb, var(--section-accent) 10%, transparent) 38%,
      transparent 72%
    );
  transform: translateX(-100%);
}

.screenshot-panel[data-media-state="loading"] .screenshot-frame::after {
  opacity: 1;
  animation: mediaLoadingSweep 1.2s ease-in-out infinite;
}

.screenshot-frame img,
.screenshot-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.22s ease;
}

.screenshot-panel[data-media-state="loading"] .screenshot-frame img,
.screenshot-panel[data-media-state="loading"] .screenshot-frame video {
  opacity: 0.72;
}

figcaption {
  padding: 12px 14px 14px;
  min-height: calc(2.7rem + 26px);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 44px 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--brand) 55%, transparent),
    transparent
  );
  pointer-events: none;
}

.footer-top {
  display: grid;
  grid-template-columns: var(--footer-top-columns);
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-intro {
  max-width: 460px;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.footer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s;
}

.footer-action:hover {
  border-color: color-mix(in srgb, var(--brand) 58%, var(--line));
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--text);
  transform: translateY(-1px);
}

.footer-action i,
.footer-action svg,
.footer-action img {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke-width: 1.8;
}

.footer-install-action .install-icon-obsidian {
  color: color-mix(in srgb, #8b5cf6 82%, var(--text));
}

.footer-discord-icon {
  display: block;
}

.footer-links {
  display: grid;
  grid-template-columns: var(--footer-links-columns);
  gap: 24px;
  min-width: 0;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.footer-column-title {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
}

.footer-link {
  width: max-content;
  max-width: 100%;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  transition: color 0.18s ease, transform 0.18s ease;
}

a.footer-link:hover {
  color: color-mix(in srgb, var(--brand) 88%, var(--text));
  transform: translateX(2px);
}

.footer-link-muted {
  color: color-mix(in srgb, var(--text-muted) 56%, transparent);
  cursor: default;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--brand) 55%, transparent),
    transparent
  );
  pointer-events: none;
}

body[data-docs-page="true"]:has(.docs-article) {
  --docs-footer-line: var(--line);
}

[data-theme="dark"] body[data-docs-page="true"]:has(.docs-article) {
  --docs-footer-line: #454952;
}

body[data-docs-page="true"]:has(.docs-article) .site-footer {
  border-top-color: color-mix(in srgb, var(--docs-accent) 30%, var(--docs-footer-line));
}

body[data-docs-page="true"]:has(.docs-article) .site-footer::before,
body[data-docs-page="true"]:has(.docs-article) .footer-bottom::before {
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--docs-accent) 30%, var(--docs-footer-line)),
    transparent
  );
}

.footer-dot {
  opacity: 0.55;
}

body.media-lightbox-open {
  overflow: hidden;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 42px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.media-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, #050506 82%, transparent);
  backdrop-filter: blur(18px);
  cursor: zoom-out;
}

.media-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  display: grid;
  justify-items: stretch;
  gap: 12px;
  transform: scale(0.96);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.media-lightbox.is-open .media-lightbox-dialog {
  transform: scale(1);
}

.media-lightbox-close {
  position: absolute;
  right: 0;
  top: -46px;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid color-mix(in srgb, white 18%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--text);
  cursor: pointer;
}

.media-lightbox-close:hover {
  background: var(--surface-muted);
}

.media-lightbox-close svg {
  width: 18px;
  height: 18px;
}

.media-lightbox-frame {
  width: fit-content;
  max-width: min(92vw, 1400px);
  max-height: 78vh;
  overflow: visible;
  position: relative;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  cursor: default;
}

.media-lightbox-frame[data-media-state="loading"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      110deg,
      transparent 0%,
      color-mix(in srgb, white 10%, transparent) 46%,
      color-mix(in srgb, white 16%, transparent) 50%,
      color-mix(in srgb, white 10%, transparent) 54%,
      transparent 100%
    ),
    color-mix(in srgb, var(--surface) 84%, black 16%);
  animation: mediaLoadingSweep 1.35s ease-in-out infinite;
}

.media-lightbox-frame img,
.media-lightbox-frame video {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 1400px);
  max-height: 78vh;
  object-fit: contain;
  position: relative;
  z-index: 1;
  border-radius: 6px;
  background: #050506;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.56);
}

.media-lightbox-frame img {
  cursor: zoom-out;
}

.media-lightbox-caption {
  width: 100%;
  max-width: min(92vw, 1400px);
  margin: 0;
  color: color-mix(in srgb, white 76%, transparent);
  font-size: 0.95rem;
  text-align: center;
}

@keyframes mediaLoadingSweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screenshot-frame::after {
    animation: none !important;
  }

  .screenshot-frame img,
  .screenshot-frame video,
  .media-lightbox,
  .media-lightbox-dialog {
    transition: none;
  }
}

.footer-brand {
  margin-bottom: 10px;
}

.site-footer p {
  max-width: 420px;
  margin: 0;
}

@media (max-width: 860px) {
  :root {
    --header-h: 58px;
  }

  .topbar {
    min-height: 58px;
  }

  .topbar .star-button span {
    display: none;
  }

  .topbar .star-button {
    padding: 0 10px;
  }

  .task-showcase {
    grid-template-columns: 1fr;
  }

  .task-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .task-list::-webkit-scrollbar {
    display: none;
  }

  .task-card {
    width: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 10px;
  }

  .task-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .task-text {
    display: none;
  }

  .static-feature .task-list {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 8px;
    overflow-x: visible;
  }

  .static-feature .task-card {
    width: 100%;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 14px;
  }

  .static-feature .task-icon {
    width: 38px;
    height: 38px;
  }

  .static-feature .task-text {
    display: block;
  }

  .hero-copy::before {
    content: none;
  }

  .hero > .eyebrow {
    display: inline-flex;
    align-self: flex-start;
    order: 0;
    margin: 16px var(--hero-copy-inset-left) 12px;
  }

}

@media (max-width: 560px) {
  :root {
    --footer-links-columns: 1fr;
  }

  .topbar,
  .feature-section,
  .site-footer {
    width: calc(100% - 24px);
    max-width: var(--max);
  }

  .brand {
    font-size: 0.98rem;
  }

  .icon-button {
    min-width: 38px;
    padding: 0 9px;
  }

  .language-button {
    min-width: 38px;
  }

  #language-label,
  .chevron-icon {
    display: none;
  }

  .section-intro {
    width: 100%;
    max-width: 100%;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 3.75rem);
  }

  .hero h1 {
    font-size: clamp(2.85rem, 12.6vw, 3.45rem);
  }

  h2 {
    font-size: clamp(1.85rem, 9.2vw, 2.28rem);
  }

  .hero-lede,
  .section-intro p:last-child {
    font-size: 1rem;
  }

  .footer-top {
    gap: 24px;
  }

  .footer-links {
    gap: 22px;
  }
}

/* ─── Docs ───────────────────────────────────────────── */
.docs-button {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.docs-button svg {
  color: var(--text-muted);
}

.docs-button.is-active {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: none;
}

.docs-button:hover {
  border-color: color-mix(in srgb, var(--accent-finder) 62%, var(--line));
  background: color-mix(in srgb, var(--accent-finder) 18%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent-finder) 22%, transparent);
}

.docs-button:hover svg {
  color: var(--accent-finder);
}

.docs-home {
  --docs-home-content-width: 80%;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 76px) 0 56px;
}

.docs-home-hero {
  width: var(--docs-home-content-width);
  max-width: none;
  margin: 0 auto clamp(32px, 5vw, 56px);
}

.docs-home-hero h1 {
  font-size: clamp(3rem, 8vw, 5.8rem);
}

.docs-home-hero p:last-child {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.docs-search {
  width: var(--docs-home-content-width);
  max-width: none;
  margin: 0 auto clamp(32px, 5vw, 56px);
}

.docs-home-section + .docs-search {
  margin-top: clamp(36px, 5vw, 62px);
}

.docs-search-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-search-box {
  --docs-search-accent: var(--docs-accent, var(--accent-finder));
  min-height: 56px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 96%, var(--line));
  box-shadow: none;
}

.docs-search-box:focus-within {
  border-color: color-mix(in srgb, var(--docs-search-accent) 54%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--docs-search-accent) 12%, transparent);
}

.docs-search-box svg {
  width: 20px;
  height: 20px;
  color: color-mix(in srgb, var(--text-muted) 82%, var(--text));
}

.docs-search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 750;
}

.docs-search-box input::placeholder {
  color: color-mix(in srgb, var(--text-muted) 82%, transparent);
  font-weight: 650;
}

.docs-search-status {
  min-height: 20px;
  margin: 9px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.docs-search-status[hidden] {
  display: none;
}

.docs-search-results {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 96%, var(--accent-finder));
}

.docs-search-results[hidden] {
  display: none;
}

.docs-search-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}

.docs-search-results-header strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.docs-search-results-header span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.docs-search-results-list {
  display: grid;
}

.docs-search-result {
  --result-accent: var(--brand);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  color: var(--text);
}

.docs-search-result:last-child {
  border-bottom: 0;
}

.docs-search-result:hover {
  background: color-mix(in srgb, var(--result-accent) 9%, transparent);
}

.docs-search-result-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--result-accent) 38%, var(--line));
  border-radius: 6px;
  color: var(--result-accent);
  background: color-mix(in srgb, var(--result-accent) 10%, transparent);
}

.docs-search-result-icon svg {
  width: 17px;
  height: 17px;
}

.docs-search-result-copy,
.docs-search-result-copy strong,
.docs-search-result-copy span {
  display: block;
  min-width: 0;
}

.docs-search-result-copy strong {
  font-size: 0.96rem;
  line-height: 1.3;
}

.docs-search-result-meta {
  margin-top: 3px;
  color: color-mix(in srgb, var(--text-muted) 88%, var(--text));
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.docs-search-result-summary {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.docs-search-compact {
  max-width: none;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
}

.docs-search-compact .docs-search-label {
  margin-bottom: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.docs-search-compact .docs-search-box {
  min-height: 42px;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 8px;
  padding: 0 10px;
  background: color-mix(in srgb, var(--surface) 96%, var(--line));
  box-shadow: none;
}

.docs-search-compact .docs-search-box svg {
  width: 16px;
  height: 16px;
  color: color-mix(in srgb, var(--text-muted) 82%, var(--text));
}

.docs-search-compact .docs-search-box input {
  font-size: 0.82rem;
  font-weight: 700;
}

.docs-search-compact .docs-search-status {
  min-height: 16px;
  margin-top: 7px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.docs-search-compact .docs-search-results {
  margin-top: 10px;
  background: color-mix(in srgb, var(--surface) 98%, var(--docs-accent));
}

.docs-search-compact .docs-search-results-header {
  padding: 9px 10px;
}

.docs-search-compact .docs-search-results-header strong {
  font-size: 0.78rem;
}

.docs-search-compact .docs-search-results-header span {
  font-size: 0.7rem;
}

.docs-search-compact .docs-search-result {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 10px;
}

.docs-search-compact .docs-search-result-icon,
.docs-search-compact .docs-search-result-summary {
  display: none;
}

.docs-search-compact .docs-search-result-copy strong {
  font-size: 0.78rem;
  line-height: 1.3;
}

.docs-search-compact .docs-search-result-meta {
  margin-top: 2px;
  font-size: 0.7rem;
  line-height: 1.3;
}

.docs-home-section {
  margin-top: clamp(36px, 5vw, 62px);
}

.docs-home-section h2 {
  width: var(--docs-home-content-width);
  max-width: none;
  margin: 0 auto 18px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: 0;
}

.docs-home-grid {
  display: grid;
  width: var(--docs-home-content-width);
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.docs-home-card {
  --card-accent: var(--brand);
  display: block;
  min-height: 158px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 94%, var(--card-accent));
  color: var(--text);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.docs-home-card:hover {
  border-color: color-mix(in srgb, var(--card-accent) 42%, var(--line));
  background: color-mix(in srgb, var(--surface) 88%, var(--card-accent));
  box-shadow: 0 18px 40px color-mix(in srgb, var(--card-accent) 14%, transparent);
  transform: translateY(-2px);
}

.docs-card-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--card-accent) 38%, var(--line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--card-accent) 10%, transparent);
  color: var(--card-accent);
}

.docs-card-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.35;
}

.docs-card-copy {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px 22px;
}

.docs-card-title {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
}

.docs-card-title strong {
  display: block;
  min-width: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.docs-card-action {
  display: block;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.docs-layout {
  --docs-accent: var(--brand);
  --docs-article-bg: #ffffff;
  --docs-article-text: var(--text);
  --docs-article-text-muted: var(--text-muted);
  --docs-article-surface-muted: var(--surface-muted);
  --docs-article-line: var(--line);
  --docs-article-shadow: var(--shadow);
  --docs-footer-offset: 0px;
  --docs-panel-top: calc(var(--header-h) + 16px);
  --docs-shell-gutter: max(16px, calc((100vw - 1440px) / 2));
  --docs-sidebar-width: clamp(190px, 17vw, 245px);
  --docs-toc-width: clamp(160px, 15vw, 220px);
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 58px;
  display: grid;
  grid-template-columns: var(--docs-sidebar-width) minmax(0, 790px) var(--docs-toc-width);
  gap: clamp(18px, 2.6vw, 34px);
  align-items: start;
}

[data-theme="dark"] .docs-layout {
  --docs-article-bg: #24262A;
  --docs-article-text: #f5f1ea;
  --docs-article-text-muted: #c8c2cc;
  --docs-article-surface-muted: #2d3035;
  --docs-article-line: #454952;
  --docs-article-shadow: 0 14px 48px rgba(0, 0, 0, 0.18);
}

.docs-mobile-controls,
.docs-panel-backdrop {
  display: none;
}

.docs-sidebar,
.docs-toc {
  position: fixed;
  top: var(--docs-panel-top);
  bottom: calc(24px + var(--docs-footer-offset));
  max-height: none;
  overflow: auto;
  scrollbar-width: thin;
}

.docs-sidebar {
  left: var(--docs-shell-gutter);
  width: var(--docs-sidebar-width);
  padding-right: 4px;
}

.docs-toc {
  right: var(--docs-shell-gutter);
  width: var(--docs-toc-width);
}

.docs-sidebar-home,
.docs-nav-section a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.docs-sidebar-home {
  margin-bottom: 18px;
  color: var(--text);
}

.docs-sidebar-home.is-active,
.docs-nav-section a.is-active,
.docs-nav-section a:hover,
.docs-sidebar-home:hover {
  background: color-mix(in srgb, var(--doc-link-accent, var(--brand)) 14%, transparent);
  color: var(--text);
}

.docs-sidebar-home svg,
.docs-nav-section a svg {
  width: 17px;
  height: 17px;
  color: var(--doc-link-accent, var(--docs-accent));
}

.docs-nav-section {
  margin: 0 0 8px;
  border: 1px solid transparent;
  border-radius: 6px;
}

.docs-nav-section[open] {
  border-color: color-mix(in srgb, var(--line) 76%, transparent);
  background: color-mix(in srgb, var(--surface-muted) 38%, transparent);
}

.docs-nav-section.has-active {
  border-color: color-mix(in srgb, var(--docs-accent) 34%, var(--line));
}

.docs-nav-section summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 8px 9px;
  border-radius: 6px;
  color: color-mix(in srgb, var(--text) 84%, var(--text-muted));
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.docs-nav-section summary::-webkit-details-marker {
  display: none;
}

.docs-nav-section summary::marker {
  content: "";
}

.docs-nav-section summary:hover {
  background: color-mix(in srgb, var(--docs-accent) 9%, transparent);
  color: var(--text);
}

.docs-nav-section summary svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  transition: transform 0.18s ease, color 0.18s ease;
}

.docs-nav-section[open] summary svg {
  color: var(--docs-accent);
  transform: rotate(90deg);
}

.docs-nav-section summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-nav-section ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 5px 7px;
  list-style: none;
}

.docs-nav-section span,
.docs-sidebar-home span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-article {
  grid-column: 2;
  --text: var(--docs-article-text);
  --text-muted: var(--docs-article-text-muted);
  --surface-muted: var(--docs-article-surface-muted);
  --line: var(--docs-article-line);
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--docs-article-bg);
  color: var(--text);
  box-shadow: var(--docs-article-shadow);
}

.docs-article-toolbar {
  --docs-action-size: 36px;
  --docs-title-line-height: calc(clamp(2rem, 4.8vw, 3.4rem) * 1.18);
  display: flex;
  justify-content: flex-end;
  align-self: start;
  gap: 8px;
  margin: calc((var(--docs-title-line-height) - var(--docs-action-size)) / 2) 0 0;
}

.docs-article-action {
  position: relative;
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface-muted) 48%, transparent);
  color: color-mix(in srgb, var(--text-muted) 82%, var(--text));
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.docs-prose .docs-article-action {
  color: color-mix(in srgb, var(--text-muted) 82%, var(--text));
  font-weight: inherit;
  text-decoration: none;
}

.docs-article-action:hover,
.docs-article-action:focus-visible,
.docs-prose .docs-article-action:hover,
.docs-prose .docs-article-action:focus-visible {
  border-color: color-mix(in srgb, var(--docs-accent) 42%, var(--line));
  background: color-mix(in srgb, var(--docs-accent) 11%, var(--surface-muted));
  color: var(--text);
}

.docs-article-action:active {
  transform: scale(0.96);
}

.docs-article-action svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.25;
}

.docs-article-action[data-copy-state="success"] {
  border-color: color-mix(in srgb, #19b86a 50%, var(--line));
  background: color-mix(in srgb, #19b86a 13%, var(--surface-muted));
  color: color-mix(in srgb, #19b86a 82%, var(--text));
}

.docs-article-action::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 5;
  max-width: 220px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  white-space: nowrap;
}

.docs-article-action:hover::after,
.docs-article-action:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.docs-prose {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.68;
}

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

.docs-prose h1,
.docs-prose h2,
.docs-prose h3,
.docs-prose h4 {
  max-width: none;
  margin: 1.65em 0 0.65em;
  letter-spacing: 0;
  line-height: 1.18;
}

.docs-prose h1 {
  margin-top: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--docs-accent) 30%, var(--line));
  font-size: clamp(2rem, 4.8vw, 3.4rem);
}

.docs-prose .docs-article-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin: 0 0 1.35em;
  padding-bottom: 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--docs-accent) 30%, var(--line));
}

.docs-prose .docs-article-heading h1 {
  min-width: 0;
  margin: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.docs-prose h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--docs-accent) 20%, var(--line));
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.docs-prose h3 {
  font-size: 1.18rem;
}

.docs-prose h4 {
  font-size: 1rem;
}

.docs-prose p,
.docs-prose ul,
.docs-prose ol,
.docs-prose table,
.docs-prose blockquote,
.docs-prose pre,
.docs-prose iframe {
  margin: 1em 0;
}

.docs-prose a {
  color: color-mix(in srgb, var(--docs-accent) 62%, #f5f1ea);
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--docs-accent) 42%, transparent);
  text-decoration-thickness: 0.07em;
  text-underline-offset: 4px;
}

.docs-prose strong > a {
  font-weight: 500;
}

.docs-prose a:hover {
  color: color-mix(in srgb, var(--docs-accent) 78%, #ffffff);
  text-decoration-color: color-mix(in srgb, var(--docs-accent) 62%, transparent);
}

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

.docs-prose li + li {
  margin-top: 0.35em;
}

.docs-prose code {
  padding: 0.12em 0.35em;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

.docs-prose pre {
  position: relative;
  overflow: visible;
  padding: 16px 54px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface-muted) 82%, #000);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.docs-prose pre code {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.docs-code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface-muted) 72%, transparent);
  color: color-mix(in srgb, var(--text-muted) 82%, var(--text));
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.docs-code-copy:hover,
.docs-code-copy:focus-visible {
  border-color: color-mix(in srgb, var(--docs-accent) 42%, var(--line));
  background: color-mix(in srgb, var(--docs-accent) 11%, var(--surface-muted));
  color: var(--text);
}

.docs-code-copy:active {
  transform: scale(0.96);
}

.docs-code-copy svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.25;
}

.docs-code-copy[data-copy-state="success"] {
  border-color: color-mix(in srgb, #19b86a 50%, var(--line));
  background: color-mix(in srgb, #19b86a 13%, var(--surface-muted));
  color: color-mix(in srgb, #19b86a 82%, var(--text));
}

.docs-code-copy[data-copy-state="error"] {
  border-color: color-mix(in srgb, var(--brand) 48%, var(--line));
  background: color-mix(in srgb, var(--brand) 10%, var(--surface-muted));
  color: color-mix(in srgb, var(--brand) 82%, var(--text));
}

.docs-code-copy[data-copy-state="selected"] {
  border-color: color-mix(in srgb, var(--docs-accent) 52%, var(--line));
  background: color-mix(in srgb, var(--docs-accent) 13%, var(--surface-muted));
  color: var(--text);
}

.docs-code-copy::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  z-index: 5;
  max-width: 180px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  white-space: nowrap;
}

.docs-code-copy:hover::after,
.docs-code-copy:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.docs-prose blockquote {
  margin-left: 0;
  padding: 13px 16px;
  border-left: 3px solid var(--docs-accent);
  border-radius: 0 6px 6px 0;
  background: color-mix(in srgb, var(--docs-accent) 9%, transparent);
  color: var(--text-muted);
}

.docs-prose blockquote.docs-media-note {
  border-left-color: color-mix(in srgb, var(--docs-accent) 24%, var(--line));
  background: color-mix(in srgb, var(--surface-muted) 58%, transparent);
  color: color-mix(in srgb, var(--text-muted) 90%, var(--text));
}

.docs-prose blockquote.docs-media-note strong {
  color: color-mix(in srgb, var(--text) 78%, var(--docs-accent));
  font-weight: 750;
}

.docs-prose blockquote.docs-callout {
  display: grid;
  gap: 9px;
  padding: 15px 16px;
  border: 1px solid color-mix(in srgb, var(--docs-accent) 34%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-muted) 72%, transparent);
  color: color-mix(in srgb, var(--text-muted) 74%, var(--text));
}

.docs-prose blockquote.docs-callout > * {
  margin: 0;
}

.docs-prose blockquote.docs-callout > * + * {
  margin-top: 0.1em;
}

.docs-prose .docs-callout-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--text) 84%, var(--docs-accent));
  font-weight: 800;
}

.docs-prose .docs-callout-title strong {
  font-weight: 800;
}

.docs-prose .docs-callout-icon {
  display: inline-grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--docs-accent) 44%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--docs-accent) 14%, var(--surface));
  color: color-mix(in srgb, var(--docs-accent) 78%, var(--text));
}

.docs-prose .docs-callout-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.25;
}

.docs-prose table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.92rem;
}

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

.docs-prose th {
  background: var(--surface-muted);
}

.docs-prose img {
  width: 100%;
  height: auto;
  margin: 1.2em 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
}

.docs-prose img.docs-lightbox-image {
  cursor: zoom-in;
}

.docs-prose img.docs-lightbox-image:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--docs-accent) 72%, transparent);
  outline-offset: 4px;
}

.docs-prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
}

.docs-toc {
  padding: 4px 0 0 2px;
  font-size: 0.88rem;
}

.docs-toc p {
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 900;
}

.docs-toc nav {
  display: grid;
  gap: 4px;
}

.docs-toc a {
  display: block;
  padding: 5px 8px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--text-muted);
  line-height: 1.35;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.docs-toc a:hover,
.docs-toc a.is-active {
  border-left-color: color-mix(in srgb, var(--docs-accent) 54%, transparent);
  background: color-mix(in srgb, var(--docs-accent) 9%, transparent);
  color: var(--text);
}

.docs-toc a.is-active {
  font-weight: 750;
}

.docs-toc-level-3 {
  margin-left: 12px;
  font-size: 0.82rem;
}

.docs-toc-empty {
  display: none;
}

.docs-prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--docs-accent) 30%, var(--line));
}

.docs-prev-next-link {
  display: block;
  min-height: 86px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface-muted) 65%, transparent);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.docs-prev-next-link:hover,
.docs-prev-next-link:focus-visible {
  border-color: color-mix(in srgb, var(--docs-accent) 30%, var(--line));
}

.docs-prev-next-link-next {
  text-align: right;
}

.docs-prev-next-link span,
.docs-prev-next-link strong {
  display: block;
}

.docs-prev-next-link span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-prev-next-link strong {
  margin-top: 7px;
  font-size: 1rem;
  line-height: 1.3;
}

@media (max-width: 1180px) {
  .docs-layout {
    --docs-sidebar-width: clamp(180px, 18vw, 230px);
    --docs-toc-width: clamp(150px, 16vw, 190px);
    grid-template-columns: var(--docs-sidebar-width) minmax(0, 1fr) var(--docs-toc-width);
    gap: 18px;
  }

  .docs-home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .docs-home {
    --docs-home-content-width: 100%;
  }

  body.docs-panel-open {
    overflow: hidden;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    width: min(820px, calc(100% - 28px));
    padding-top: 74px;
  }

  .docs-mobile-controls {
    position: fixed;
    top: var(--header-h);
    right: 14px;
    left: 14px;
    z-index: 39;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 820px;
    margin: 0 auto;
    padding: 10px 0;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .docs-panel-button {
    min-width: 0;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 850;
    cursor: pointer;
  }

  .docs-panel-button svg {
    width: 17px;
    height: 17px;
    color: var(--docs-accent);
  }

  .docs-panel-button[aria-expanded="true"] {
    border-color: color-mix(in srgb, var(--docs-accent) 46%, var(--line));
    background: color-mix(in srgb, var(--docs-accent) 12%, var(--surface));
  }

  .docs-panel-button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
  }

  .docs-panel-backdrop {
    position: fixed;
    top: calc(var(--header-h) + 58px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 44;
    display: block;
    background: rgba(0, 0, 0, 0.45);
  }

  .docs-panel-backdrop[hidden] {
    display: none;
  }

  .docs-sidebar,
  .docs-toc {
    position: fixed;
    top: calc(var(--header-h) + 58px);
    bottom: 0;
    z-index: 50;
    width: min(360px, calc(100vw - 34px));
    max-height: none;
    padding: 16px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 98%, var(--docs-accent));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
    transition: transform 0.22s ease;
  }

  .docs-sidebar {
    left: 0;
    border-left: 0;
    border-radius: 0 6px 0 0;
    transform: translateX(-105%);
  }

  .docs-toc {
    right: 0;
    display: block;
    border-right: 0;
    border-radius: 6px 0 0 0;
    transform: translateX(105%);
  }

  body.docs-panel-nav .docs-sidebar,
  body.docs-panel-toc .docs-toc {
    transform: translateX(0);
  }

  .docs-home-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .docs-home,
  .docs-layout {
    width: calc(100% - 24px);
  }

  .docs-home-grid {
    grid-template-columns: 1fr;
  }

  .docs-search-box {
    min-height: 52px;
    padding: 0 14px;
  }

  .docs-search-box input {
    font-size: 0.94rem;
  }

  .docs-search-result {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .docs-search-result-icon {
    width: 28px;
    height: 28px;
  }

  .docs-home-card {
    min-height: 148px;
  }

  .docs-article {
    padding: 18px;
  }

  .docs-article-toolbar {
    --docs-action-size: 34px;
    justify-content: flex-end;
  }

  .docs-article-action {
    width: 34px;
    height: 34px;
  }

  .docs-prev-next {
    grid-template-columns: 1fr;
  }

  .docs-prev-next-link-next {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .docs-prose .docs-article-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
