html.ht-home-overlay-active header:not(.ht-overlay-header) {
  position: fixed !important;
  inset-inline: 0 !important;
  top: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

html.ht-home-overlay-active .ht-overlay-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: color-mix(in oklab, var(--background) 90%, transparent);
  color: var(--foreground);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))) {
  html.ht-home-overlay-active .ht-overlay-header {
    background: color-mix(in oklab, var(--background) 80%, transparent);
  }
}

html.ht-home-overlay-active .ht-overlay-header__wrap {
  width: 100%;
  padding-inline: 1rem;
}

html.ht-home-overlay-active .ht-overlay-header__nav {
  display: flex;
  height: 4rem;
  align-items: center;
}

html.ht-home-overlay-active .ht-overlay-header__left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

html.ht-home-overlay-active .ht-overlay-brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.5rem;
  padding: 0.25rem 0.375rem;
  color: var(--foreground);
  text-decoration: none;
  transition-property: color, background-color, border-color, outline-color;
  transition-duration: 200ms;
}

html.ht-home-overlay-active .ht-overlay-brand:hover,
html.ht-home-overlay-active .ht-overlay-brand:focus-visible {
  background: var(--accent);
  color: var(--foreground);
  outline: none;
}

html.ht-home-overlay-active .ht-overlay-brand__logo-wrap {
  display: flex;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  transition: transform 300ms;
}

html.ht-home-overlay-active .ht-overlay-brand:hover .ht-overlay-brand__logo-wrap {
  transform: scale(1.05);
}

html.ht-home-overlay-active .ht-overlay-brand__logo {
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  object-fit: contain;
}

html.ht-home-overlay-active .ht-overlay-brand__name {
  font-family:
    "IBM Plex Mono", MiSans, ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", monospace;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25rem;
}

html.ht-home-overlay-active .ht-overlay-desktop-nav {
  display: none;
  align-items: center;
  gap: 0.125rem;
}

html.ht-home-overlay-active .ht-overlay-desktop-nav a {
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25rem;
  text-decoration: none;
  transition-property: color, background-color, border-color, outline-color;
  transition-duration: 200ms;
}

html.ht-home-overlay-active .ht-overlay-desktop-nav a:hover,
html.ht-home-overlay-active .ht-overlay-desktop-nav a:focus-visible {
  background: var(--accent);
  color: var(--foreground);
  outline: none;
}

html.ht-home-overlay-active .ht-overlay-desktop-nav a[data-active='true'] {
  background: color-mix(in oklab, var(--accent) 60%, transparent);
  color: var(--foreground);
}

html.ht-home-overlay-active .ht-overlay-header__right {
  margin-inline-start: auto;
  display: none;
  position: relative;
  align-items: center;
  gap: 0.125rem;
}

html.ht-home-overlay-active .ht-overlay-divider {
  margin-inline: 0.5rem;
  height: 1rem;
  width: 1px;
  background: color-mix(in oklab, var(--border) 40%, transparent);
}

html.ht-home-overlay-active .ht-overlay-divider--profile {
  margin-inline: 0.25rem;
}

html.ht-home-overlay-active .ht-overlay-action {
  position: relative;
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--foreground);
  background-clip: padding-box;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  outline: none;
  user-select: none;
  white-space: nowrap;
  transition-property:
    color, background-color, border-color, outline-color, box-shadow, transform;
  transition-duration: 150ms;
}

html.ht-home-overlay-active .ht-overlay-action:hover,
html.ht-home-overlay-active .ht-overlay-action[aria-expanded='true'] {
  background: var(--muted);
  color: var(--foreground);
}

html.dark.ht-home-overlay-active .ht-overlay-action:hover,
html.dark.ht-home-overlay-active .ht-overlay-action[aria-expanded='true'] {
  background: color-mix(in oklab, var(--muted) 50%, transparent);
}

html.ht-home-overlay-active .ht-overlay-action:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
}

html.ht-home-overlay-active .ht-overlay-action:active {
  transform: translateY(1px);
}

html.ht-home-overlay-active .ht-overlay-action svg {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  pointer-events: none;
  stroke-width: 2;
}

html.ht-home-overlay-active .ht-overlay-notification-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--background);
  border-radius: 999px;
  background: var(--destructive);
  color: var(--destructive-foreground);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding-inline: 0.25rem;
  pointer-events: none;
  tab-size: 4;
}

html.ht-home-overlay-active .ht-overlay-notification-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 2.25rem;
  width: min(20rem, calc(100vw - 2rem));
  z-index: 60;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--popover, var(--background));
  color: var(--popover-foreground, var(--foreground));
  box-shadow:
    0 18px 45px color-mix(in oklab, var(--foreground) 16%, transparent),
    0 2px 8px color-mix(in oklab, var(--foreground) 8%, transparent);
  transform-origin: top right;
  animation: ht-overlay-popover-in 160ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.dark.ht-home-overlay-active .ht-overlay-notification-panel {
  box-shadow:
    0 18px 45px rgb(0 0 0 / 0.34),
    0 2px 8px rgb(0 0 0 / 0.2);
}

html.ht-home-overlay-active .ht-overlay-notification-title {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25rem;
}

html.ht-home-overlay-active .ht-overlay-notification-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.25rem;
  margin: 0.75rem 1rem 0;
  border-radius: 0.5rem;
  background: var(--muted);
  padding: 0.25rem;
}

html.ht-home-overlay-active .ht-overlay-notification-tab {
  position: relative;
  display: inline-flex;
  min-width: 0;
  height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
  outline: none;
  transition:
    background-color 150ms,
    color 150ms,
    box-shadow 150ms;
}

html.ht-home-overlay-active .ht-overlay-notification-tab[aria-selected='true'] {
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 1px 2px color-mix(in oklab, var(--foreground) 9%, transparent);
}

html.ht-home-overlay-active .ht-overlay-notification-tab:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--ring) 55%, transparent);
}

html.ht-home-overlay-active .ht-overlay-notification-tab svg {
  width: 0.75rem;
  height: 0.75rem;
  stroke-width: 2;
}

html.ht-home-overlay-active .ht-overlay-notification-megaphone {
  position: relative;
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

html.ht-home-overlay-active .ht-overlay-notification-megaphone::before {
  content: '';
  position: absolute;
  inset: 0.125rem 0.125rem 0.125rem 0;
  border: 1.5px solid currentColor;
  border-right: 0;
  border-radius: 0.125rem 0 0 0.125rem;
  transform: skewY(-14deg);
}

html.ht-home-overlay-active .ht-overlay-notification-megaphone::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0.05rem;
  width: 0.35rem;
  height: 0.65rem;
  border: 1.5px solid currentColor;
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

html.ht-home-overlay-active .ht-overlay-notification-tab-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--destructive);
}

html.ht-home-overlay-active .ht-overlay-notification-body {
  padding: 0.75rem 1rem 0.5rem;
}

html.ht-home-overlay-active .ht-overlay-notification-scroll {
  max-height: 16rem;
  overflow: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
}

html.ht-home-overlay-active .ht-overlay-notification-empty {
  display: flex;
  min-height: 8rem;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
}

html.ht-home-overlay-active .ht-overlay-notification-markdown {
  color: var(--foreground);
  font-size: 0.875rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

html.ht-home-overlay-active .ht-overlay-notification-markdown p {
  margin: 0;
}

html.ht-home-overlay-active .ht-overlay-notification-markdown p + p {
  margin-top: 0.625rem;
}

html.ht-home-overlay-active .ht-overlay-notification-markdown a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.ht-home-overlay-active .ht-overlay-notification-markdown code {
  border-radius: 0.25rem;
  background: var(--muted);
  font-size: 0.8125rem;
  padding: 0.1rem 0.25rem;
}

html.ht-home-overlay-active .ht-overlay-notification-list {
  display: flex;
  flex-direction: column;
}

html.ht-home-overlay-active .ht-overlay-notification-item {
  display: flex;
  gap: 0.5rem;
  padding-block: 0.5rem;
}

html.ht-home-overlay-active .ht-overlay-notification-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: var(--primary);
}

html.ht-home-overlay-active .ht-overlay-notification-dot--success {
  background: #22c55e;
}

html.ht-home-overlay-active .ht-overlay-notification-dot--warning {
  background: #f59e0b;
}

html.ht-home-overlay-active .ht-overlay-notification-dot--danger {
  background: var(--destructive);
}

html.ht-home-overlay-active .ht-overlay-notification-item__body {
  min-width: 0;
  flex: 1;
}

html.ht-home-overlay-active .ht-overlay-notification-extra {
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

html.ht-home-overlay-active .ht-overlay-notification-extra p {
  margin: 0;
}

html.ht-home-overlay-active .ht-overlay-notification-time {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1rem;
}

html.ht-home-overlay-active .ht-overlay-notification-separator {
  height: 1px;
  background: var(--border);
}

html.ht-home-overlay-active .ht-overlay-notification-footer {
  border-top: 1px solid var(--border);
  padding: 0.5rem 1rem;
}

html.ht-home-overlay-active .ht-overlay-notification-close-today {
  display: inline-flex;
  width: 100%;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
  outline: none;
  transition:
    background-color 150ms,
    color 150ms,
    box-shadow 150ms;
}

html.ht-home-overlay-active .ht-overlay-notification-close-today:hover {
  background: var(--muted);
}

html.ht-home-overlay-active .ht-overlay-notification-close-today:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--ring) 55%, transparent);
}

html.ht-home-overlay-active .ht-overlay-theme-stack {
  position: relative;
  display: inline-flex;
  width: 1.2rem;
  height: 1.2rem;
  align-items: center;
  justify-content: center;
}

html.ht-home-overlay-active .ht-overlay-theme-icon {
  position: absolute;
  transition-property: all;
  transition-duration: 260ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

html.ht-home-overlay-active .ht-overlay-theme-sun {
  transform: rotate(0deg) scale(1);
}

html.ht-home-overlay-active .ht-overlay-theme-moon {
  position: absolute;
  transform: rotate(90deg) scale(0);
}

html.dark.ht-home-overlay-active .ht-overlay-theme-sun {
  transform: rotate(-90deg) scale(0);
}

html.dark.ht-home-overlay-active .ht-overlay-theme-moon {
  transform: rotate(0deg) scale(1);
}

html.ht-theme-transitioning .ht-overlay-action[data-ht-overlay-action='theme'] {
  pointer-events: none;
}

html.ht-theme-transitioning {
  overflow: hidden;
}

html.ht-language-transitioning .ht-overlay-action[data-ht-overlay-action='language'] {
  pointer-events: none;
}

.ht-language-sweep-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  overflow: hidden;
  contain: layout paint;
}

.ht-language-sweep-segment {
  position: fixed;
  display: block;
  overflow: hidden;
  border-radius: 0.45rem;
  opacity: 0;
  animation: ht-language-segment-life 960ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--ht-language-delay, 0ms);
  transform: translateZ(0);
}

.ht-language-sweep-segment::before {
  content: '';
  position: absolute;
  inset: -0.55rem -0.75rem;
  background: color-mix(in oklab, var(--background) 68%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  backdrop-filter: blur(12px) saturate(1.08);
  transform: translateX(-112%);
  animation: ht-language-segment-scan 960ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--ht-language-delay, 0ms);
}

.ht-language-sweep-segment::after {
  content: '';
  position: absolute;
  inset-block: -0.55rem;
  left: -2.5rem;
  width: 4rem;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in oklab, var(--foreground) 10%, transparent),
    transparent
  );
  transform: translateX(-112%);
  animation: ht-language-segment-shine 960ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--ht-language-delay, 0ms);
}

html.dark .ht-language-sweep-segment::before {
  background: color-mix(in oklab, var(--background) 76%, transparent);
}

html.ht-home-overlay-active
  .ht-overlay-action--theme-flipping
  .ht-overlay-theme-stack {
  animation: ht-theme-stack-flip 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-new(root) {
  z-index: 1;
}

::view-transition-old(root) {
  z-index: 0;
}

::view-transition-old(ht-theme-toggle),
::view-transition-new(ht-theme-toggle) {
  animation-duration: 520ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  height: 1.2rem;
  width: 1.2rem;
  mix-blend-mode: normal;
}

::view-transition-group(ht-theme-toggle) {
  z-index: 20;
}

html[data-ht-theme-next='dark']::view-transition-old(ht-theme-toggle) {
  animation-name: ht-theme-icon-out-dark;
}

html[data-ht-theme-next='dark']::view-transition-new(ht-theme-toggle) {
  animation-name: ht-theme-icon-in-dark;
}

html[data-ht-theme-next='light']::view-transition-old(ht-theme-toggle) {
  animation-name: ht-theme-icon-out-light;
}

html[data-ht-theme-next='light']::view-transition-new(ht-theme-toggle) {
  animation-name: ht-theme-icon-in-light;
}

@keyframes ht-theme-icon-out-dark {
  to {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
  }
}

@keyframes ht-theme-icon-in-dark {
  from {
    opacity: 0;
    transform: rotate(90deg) scale(0);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes ht-theme-icon-out-light {
  to {
    opacity: 0;
    transform: rotate(90deg) scale(0);
  }
}

@keyframes ht-theme-icon-in-light {
  from {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes ht-theme-stack-flip {
  0% {
    transform: rotate(0deg) scale(1);
  }
  45% {
    transform: rotate(90deg) scale(0.75);
  }
  100% {
    transform: rotate(180deg) scale(1);
  }
}

@keyframes ht-overlay-popover-in {
  from {
    opacity: 0;
    transform: translateY(-0.25rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ht-language-segment-life {
  0% {
    opacity: 0;
  }
  8%,
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes ht-language-segment-scan {
  0% {
    transform: translateX(-112%);
  }
  42% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(112%);
  }
}

@keyframes ht-language-segment-shine {
  0% {
    transform: translateX(-112%);
  }
  100% {
    transform: translateX(calc(100% + 4rem));
  }
}

html.ht-home-overlay-active .ht-overlay-mobile-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

html.ht-home-overlay-active .ht-overlay-menu-lines {
  position: relative;
  width: 1rem;
  height: 1rem;
}

html.ht-home-overlay-active .ht-overlay-menu-lines span {
  position: absolute;
  inset-inline: 0;
  display: block;
  height: 1.5px;
  transform-origin: center;
  border-radius: 999px;
  background: currentColor;
  transition: all 300ms;
}

html.ht-home-overlay-active .ht-overlay-menu-lines span:nth-child(1) {
  top: 3px;
}

html.ht-home-overlay-active .ht-overlay-menu-lines span:nth-child(2) {
  top: 7px;
}

html.ht-home-overlay-active .ht-overlay-menu-lines span:nth-child(3) {
  top: 11px;
}

html.ht-home-overlay-active .ht-overlay-mobile-panel {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--background) 98%, transparent);
  opacity: 0;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  transition: all 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.ht-home-overlay-active .ht-overlay-mobile-panel__inner {
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 5rem 2rem 2.5rem;
}

html.ht-home-overlay-active .ht-overlay-mobile-panel nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

html.ht-home-overlay-active .ht-overlay-mobile-panel a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.75rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5rem;
  text-decoration: none;
  transform: translateY(1rem);
  opacity: 0;
  transition: all 500ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.ht-home-overlay-active .ht-overlay-mobile-panel a[data-active='true'] {
  color: var(--foreground);
}

html.ht-overlay-mobile-open {
  overflow: hidden;
}

html.ht-overlay-mobile-open .ht-overlay-mobile-panel {
  pointer-events: auto;
  opacity: 1;
}

html.ht-overlay-mobile-open .ht-overlay-mobile-panel a {
  transform: translateY(0);
  opacity: 1;
}

html.ht-overlay-mobile-open .ht-overlay-menu-lines span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

html.ht-overlay-mobile-open .ht-overlay-menu-lines span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

html.ht-overlay-mobile-open .ht-overlay-menu-lines span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

@media (min-width: 768px) {
  html.ht-home-overlay-active .ht-overlay-header__wrap {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  html.ht-home-overlay-active .ht-overlay-desktop-nav,
  html.ht-home-overlay-active .ht-overlay-header__right {
    display: flex;
  }

  html.ht-home-overlay-active .ht-overlay-mobile-actions,
  html.ht-home-overlay-active .ht-overlay-mobile-panel {
    display: none;
  }
}
