
@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-menu {
  z-index: var(--juxt-z-popover);
  box-sizing: border-box;
  min-width: 11rem;
  max-width: calc(100vw - 16px);
  max-height: var(--j-available-height, 24rem);
  padding: var(--juxt-space-1);
  overflow-y: auto;
  overscroll-behavior: contain;
  outline: none;
}
.j-menu__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--juxt-space-2);
  min-height: var(--juxt-control-sm);
  padding: 0 var(--juxt-space-2);
  border-radius: var(--juxt-radius-xs);
  color: var(--juxt-fg);
  font-size: var(--juxt-text-md);
  letter-spacing: var(--juxt-tracking-tight);
  text-decoration: none;
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.j-menu__item:focus,
.j-menu__item[aria-expanded='true'] {
  background: var(--juxt-surface-hover);
}
.j-menu__item[aria-disabled='true'] {
  color: var(--juxt-fg-disabled);
  cursor: not-allowed;
}
.j-menu__item--destructive {
  color: var(--juxt-danger-text);
}
.j-menu__item--destructive:focus {
  background: var(--juxt-danger-soft);
}
.j-menu__icon {
  display: inline-flex;
  flex: none;
  color: var(--juxt-fg-muted);
}
.j-menu__icon > svg {
  width: 1rem;
  height: 1rem;
}
.j-menu__item:focus .j-menu__icon {
  color: var(--juxt-fg-secondary);
}
.j-menu__item--destructive .j-menu__icon {
  color: inherit;
}
.j-menu__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.j-menu__shortcut {
  margin-left: var(--juxt-space-4);
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-xs);
  letter-spacing: 0.04em;
}
.j-menu__check {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  margin-left: var(--juxt-space-4);
  color: var(--juxt-accent-text);
  opacity: 0;
}
.j-menu__check.is-checked {
  opacity: 1;
}
.j-menu__chevron {
  width: 0.875rem;
  height: 0.875rem;
  margin-right: -0.125rem;
  color: var(--juxt-fg-muted);
}
.j-menu__separator {
  height: 1px;
  margin: var(--juxt-space-1) calc(var(--juxt-space-1) * -1);
  background: var(--juxt-border-subtle);
}
.dark .j-menu__separator,
[data-theme='dark'] .j-menu__separator {
  background: var(--juxt-border);
}
.j-menu__label {
  padding: var(--juxt-space-1-5) var(--juxt-space-2) var(--juxt-space-1);
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-xs);
  font-weight: var(--juxt-weight-medium);
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-field {
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-1-5);
  min-width: 0;
  font-family: var(--juxt-font-sans);
}
.j-field__label {
  display: inline-flex;
  align-items: baseline;
  gap: var(--juxt-space-0-5);
  width: fit-content;
  color: var(--juxt-fg);
  font-size: var(--juxt-text-sm);
  font-weight: var(--juxt-weight-medium);
  line-height: var(--juxt-leading-snug);
  letter-spacing: var(--juxt-tracking-tight);
}
.j-field.is-disabled .j-field__label {
  color: var(--juxt-fg-muted);
}
.j-field__required {
  color: var(--juxt-fg-muted);
  font-weight: var(--juxt-weight-regular);
}
.j-field__messages:empty {
  display: none;
}
.j-field__description,
.j-field__error {
  margin: 0;
  font-size: var(--juxt-text-xs);
  line-height: var(--juxt-leading-normal);
}
.j-field__description {
  color: var(--juxt-fg-muted);
}
.j-field__error {
  color: var(--juxt-danger-text);
}
.j-field-message-enter-active {
  transition:
    opacity var(--juxt-duration-fast) var(--juxt-ease-out),
    transform var(--juxt-duration-normal) var(--juxt-ease-out);
}
.j-field-message-leave-active {
  transition: opacity var(--juxt-duration-instant) var(--juxt-ease-in);
}
.j-field-message-enter-from {
  opacity: 0;
  transform: translateY(calc(var(--juxt-motion-shift) * -0.5));
}
.j-field-message-leave-to {
  opacity: 0;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-kbd-group {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
}
.j-kbd-group--sm .j-kbd,
.j-kbd--sm {
  min-width: 1.0625rem;
  height: 1.0625rem;
  font-size: 0.625rem;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-tooltip {
  z-index: var(--juxt-z-tooltip);
  box-sizing: border-box;
  max-width: min(17.5rem, calc(100vw - 16px));
  padding: var(--juxt-space-1) var(--juxt-space-2);
  border: 1px solid var(--juxt-tooltip-border);
  border-radius: var(--juxt-radius-sm);
  background: var(--juxt-tooltip-bg);
  box-shadow: var(--juxt-shadow-sm);
  color: var(--juxt-tooltip-fg);
  font-family: var(--juxt-font-sans);
  font-size: var(--juxt-text-xs);
  font-weight: var(--juxt-weight-medium);
  line-height: var(--juxt-leading-snug);
  letter-spacing: 0;
  overflow-wrap: break-word;
  pointer-events: auto;
}
.j-tooltip .j-kbd {
  height: 1rem;
  min-width: 1rem;
  margin-left: var(--juxt-space-1);
  border-color: rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.08);
  color: rgb(255 255 255 / 0.72);
}
.j-tooltip-enter-active {
  transition:
    opacity var(--juxt-duration-fast) var(--juxt-ease-out),
    transform var(--juxt-duration-fast) var(--juxt-ease-out);
}
.j-tooltip-leave-active {
  transition: opacity var(--juxt-duration-instant) var(--juxt-ease-in);
}
.j-tooltip-enter-from,
.j-tooltip-leave-to {
  opacity: 0;
}
.j-tooltip-enter-from {
  transform: translate(
    calc(var(--juxt-motion-shift) * 0.5 * var(--j-pop-x, 0)),
    calc(var(--juxt-motion-shift) * 0.5 * var(--j-pop-dir, 0))
  );
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-editor-button {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: var(--juxt-control-sm);
  height: var(--juxt-control-sm);
  padding: 0;
  border: 0;
  border-radius: var(--juxt-radius-sm);
  background: transparent;
  color: var(--juxt-fg-secondary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition-property: background-color, color, outline-color, outline-offset, transform;
}
.j-editor-button > svg {
  width: 1rem;
  height: 1rem;
}
.j-editor-button:hover:not(:disabled) {
  background: var(--juxt-surface-hover);
  color: var(--juxt-fg);
}
.j-editor-button:active:not(:disabled) {
  transform: scale(0.94);
  transition-duration: var(--juxt-duration-instant);
}
.j-editor-button.is-active {
  background: var(--juxt-surface-active);
  color: var(--juxt-fg);
}
.j-editor-button:disabled {
  color: var(--juxt-fg-disabled);
  cursor: not-allowed;
}
.j-editor-button__keys {
  margin-left: var(--juxt-space-1-5);
}
@media (prefers-reduced-motion: reduce) {
.j-editor-button:active:not(:disabled) {
    transform: none;
}
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
/* Frame: the same border, focus halo and invalid states as Input. */
.j-editor {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--juxt-border);
  border-radius: var(--juxt-radius-md);
  background: var(--juxt-surface);
  box-shadow: var(--juxt-shadow-xs);
  color: var(--juxt-fg);
  font-family: var(--juxt-font-sans);
  transition:
    border-color var(--juxt-duration-fast) var(--juxt-ease-standard),
    box-shadow var(--juxt-duration-normal) var(--juxt-ease-out);
}
.dark .j-editor,
[data-theme='dark'] .j-editor {
  background: var(--juxt-surface-sunken);
}
.j-editor:hover:not(.is-disabled, :focus-within) {
  border-color: var(--juxt-border-strong);
}
.j-editor:has(.ProseMirror-focused) {
  border-color: var(--juxt-accent);
  box-shadow: 0 0 0 3px var(--juxt-ring-soft);
}
.j-editor.is-invalid {
  border-color: var(--juxt-danger-border);
}
.j-editor.is-invalid:has(.ProseMirror-focused) {
  border-color: var(--juxt-danger);
  box-shadow: 0 0 0 3px var(--juxt-danger-ring);
}
.j-editor.is-disabled {
  background: var(--juxt-surface-sunken);
  box-shadow: none;
  opacity: 0.7;
}

/* Toolbar: stays reachable while you scroll a long document. */
.j-editor__toolbar {
  position: sticky;
  top: var(--j-editor-sticky-top, 0);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: var(--juxt-space-1);
  overflow-x: auto;
  border-bottom: 1px solid var(--juxt-border-subtle);
  border-radius: var(--juxt-radius-md) var(--juxt-radius-md) 0 0;
  background: inherit;
  scrollbar-width: none;
}
.j-editor__toolbar::-webkit-scrollbar {
  display: none;
}
.dark .j-editor__toolbar,
[data-theme='dark'] .j-editor__toolbar {
  border-bottom-color: var(--juxt-border);
}
.j-editor__divider {
  flex: none;
  width: 1px;
  height: 1rem;
  margin: 0 var(--juxt-space-1);
  background: var(--juxt-border);
}
.j-editor__spacer {
  flex: 1;
  min-width: var(--juxt-space-2);
}
.j-editor__block {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--juxt-space-1-5);
  height: var(--juxt-control-sm);
  padding: 0 var(--juxt-space-2);
  border: 0;
  border-radius: var(--juxt-radius-sm);
  background: transparent;
  color: var(--juxt-fg);
  font: inherit;
  font-size: var(--juxt-text-sm);
  font-weight: var(--juxt-weight-medium);
  cursor: pointer;
  transition-property: background-color, outline-color, outline-offset;
}
.j-editor__block:hover:not(:disabled) {
  background: var(--juxt-surface-hover);
}
.j-editor__block:disabled {
  color: var(--juxt-fg-disabled);
  cursor: not-allowed;
}
.j-editor__block > svg {
  width: 1rem;
  height: 1rem;
  color: var(--juxt-fg-muted);
}
.j-editor__block-label {
  min-width: 5.5rem;
  text-align: left;
}
.j-editor__block .j-editor__block-chevron {
  width: 0.75rem;
  height: 0.75rem;
}

/* Writing area */
.j-editor__content {
  flex: 1;
  min-height: var(--j-editor-min);
  max-height: var(--j-editor-max);
  padding: var(--juxt-space-3) var(--juxt-space-4);
  overflow-y: auto;
  cursor: text;
}
.j-editor.is-disabled .j-editor__content,
.j-editor.is-readonly .j-editor__content {
  cursor: default;
}
.j-editor__ssr {
  margin: 0;
  color: var(--juxt-fg-muted);
}
.j-editor__footer {
  display: flex;
  justify-content: space-between;
  gap: var(--juxt-space-3);
  padding: var(--juxt-space-1-5) var(--juxt-space-4);
  border-top: 1px solid var(--juxt-border-subtle);
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-xs);
  font-variant-numeric: tabular-nums;
}
.dark .j-editor__footer,
[data-theme='dark'] .j-editor__footer {
  border-top-color: var(--juxt-border);
}
.j-editor__footer .is-near {
  color: var(--juxt-warning-text);
}
.j-editor__footer .is-at {
  color: var(--juxt-danger-text);
}

/* ---------------------------------------------------------------------------
 * Document typography. Deliberately close to the docs prose: calm, readable,
 * a clear hierarchy without shouting.
 * ------------------------------------------------------------------------ */
.j-editor__prose {
  min-height: calc(var(--j-editor-min) - var(--juxt-space-6));
  color: var(--juxt-fg);
  font-size: 0.9375rem;
  line-height: 1.7;
  letter-spacing: var(--juxt-tracking-tight);
  white-space: pre-wrap;
  word-wrap: break-word;
  outline: none;
  font-variant-ligatures: none;
  font-feature-settings: 'liga' 0;
}
.j-editor__prose > * + * {
  margin-top: 0.75em;
}
.j-editor__prose p {
  margin: 0;
}
.j-editor__prose :is(h1, h2, h3) {
  margin: 1.4em 0 0;
  color: var(--juxt-fg);
  font-weight: var(--juxt-weight-semibold);
  line-height: 1.3;
  letter-spacing: var(--juxt-tracking-tighter);
}
.j-editor__prose > :is(h1, h2, h3):first-child {
  margin-top: 0;
}
.j-editor__prose h1 {
  font-size: 1.625rem;
}
.j-editor__prose h2 {
  font-size: 1.3125rem;
}
.j-editor__prose h3 {
  font-size: 1.0625rem;
}
.j-editor__prose :is(ul, ol) {
  margin-bottom: 0;
  padding-left: 1.375em;
}
.j-editor__prose li + li {
  margin-top: 0.25em;
}
.j-editor__prose li > p {
  margin: 0;
}
.j-editor__prose li::marker {
  color: var(--juxt-fg-muted);
}
.j-editor__prose ul ul {
  list-style-type: circle;
}

/* To-do items look and feel like JCheckbox. */
.j-editor__prose ul[data-type='taskList'] {
  padding-left: 0.125em;
  list-style: none;
}
.j-editor__prose ul[data-type='taskList'] li {
  display: flex;
  align-items: flex-start;
  gap: 0.625em;
}
.j-editor__prose ul[data-type='taskList'] li > label {
  display: inline-flex;
  flex: none;
  margin-top: 0.2em;
  user-select: none;
}
.j-editor__prose ul[data-type='taskList'] li > div {
  flex: 1;
  min-width: 0;
}
.j-editor__prose ul[data-type='taskList'] input[type='checkbox'] {
  display: grid;
  place-content: center;
  width: 1rem;
  height: 1rem;
  margin: 0;
  border: 1px solid var(--juxt-border-strong);
  border-radius: var(--juxt-radius-xs);
  background: var(--juxt-surface);
  cursor: pointer;
  appearance: none;
  transition:
    background-color var(--juxt-duration-fast) var(--juxt-ease-standard),
    border-color var(--juxt-duration-fast) var(--juxt-ease-standard);
}
.j-editor__prose ul[data-type='taskList'] input[type='checkbox']::after {
  content: '';
  width: 0.5rem;
  height: 0.28rem;
  margin-top: -0.1rem;
  border-bottom: 2px solid var(--juxt-accent-fg);
  border-left: 2px solid var(--juxt-accent-fg);
  opacity: 0;
  transform: rotate(-45deg) scale(0.6);
  transition:
    opacity var(--juxt-duration-instant) var(--juxt-ease-standard),
    transform var(--juxt-duration-normal) var(--juxt-ease-out);
}
.j-editor__prose ul[data-type='taskList'] input[type='checkbox']:checked {
  border-color: var(--juxt-accent);
  background: var(--juxt-accent);
}
.j-editor__prose ul[data-type='taskList'] input[type='checkbox']:checked::after {
  opacity: 1;
  transform: rotate(-45deg);
}
.j-editor__prose ul[data-type='taskList'] input[type='checkbox']:focus-visible {
  outline: 2px solid var(--juxt-ring);
  outline-offset: 2px;
}
.j-editor__prose li[data-checked='true'] > div {
  color: var(--juxt-fg-muted);
  text-decoration: line-through;
  text-decoration-color: var(--juxt-border-strong);
}
.j-editor__prose blockquote {
  margin-left: 0;
  margin-right: 0;
  padding-left: 1em;
  border-left: 2px solid var(--juxt-border-strong);
  color: var(--juxt-fg-secondary);
}
.j-editor__prose a {
  color: var(--juxt-fg);
  text-decoration: underline;
  text-decoration-color: var(--juxt-border-strong);
  text-underline-offset: 3px;
  cursor: text;
  transition: text-decoration-color var(--juxt-duration-fast) var(--juxt-ease-standard);
}
.j-editor__prose a:hover {
  text-decoration-color: var(--juxt-accent);
}
.j-editor__prose code {
  padding: 0.1em 0.3em;
  border: 1px solid var(--juxt-border-subtle);
  border-radius: var(--juxt-radius-xs);
  background: var(--juxt-surface-sunken);
  font-family: var(--juxt-font-mono);
  font-size: 0.85em;
}
.dark .j-editor__prose code,
[data-theme='dark'] .j-editor__prose code {
  border-color: var(--juxt-border);
  background: var(--juxt-surface-raised);
}
.j-editor__prose pre {
  padding: 0.875em 1em;
  overflow-x: auto;
  border: 1px solid var(--juxt-border-subtle);
  border-radius: var(--juxt-radius-md);
  background: var(--juxt-surface-sunken);
  font-family: var(--juxt-font-mono);
  font-size: 0.8125rem;
  line-height: 1.65;
  white-space: pre;
}
.dark .j-editor__prose pre,
[data-theme='dark'] .j-editor__prose pre {
  border-color: var(--juxt-border);
  background: var(--juxt-bg);
}
.j-editor__prose pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}
.j-editor__prose hr {
  height: 1px;
  margin: 1.5em 0;
  border: 0;
  background: var(--juxt-border);
}
.j-editor__prose hr.ProseMirror-selectednode {
  outline: 2px solid var(--juxt-ring);
  outline-offset: 4px;
}
.j-editor__prose mark {
  padding: 0.05em 0.1em;
  border-radius: 2px;
  background: var(--juxt-warning-soft);
  color: inherit;
}
.j-editor__prose ::selection {
  background: var(--juxt-accent-soft);
}

/* Placeholder: on an empty document, and on each empty heading. */
.j-editor__prose .is-empty::before {
  content: attr(data-placeholder);
  float: left;
  height: 0;
  color: var(--juxt-fg-muted);
  pointer-events: none;
}

/* The per-line hint is quieter than the document placeholder. */
.j-editor__prose .is-empty:not(.is-editor-empty):not(h1, h2, h3)::before {
  color: var(--juxt-fg-disabled);
}
.j-editor__prose .ProseMirror-gapcursor {
  display: none;
  position: relative;
  pointer-events: none;
}
.j-editor__prose.ProseMirror-focused .ProseMirror-gapcursor {
  display: block;
}
.j-editor__prose .ProseMirror-gapcursor::after {
  content: '';
  position: absolute;
  top: -2px;
  display: block;
  width: 20px;
  border-top: 1px solid var(--juxt-fg);
  animation: j-editor-cursor 1.1s steps(2, start) infinite;
}
@keyframes j-editor-cursor {
to {
    visibility: hidden;
}
}

/* Selection toolbar */
.j-editor__bubble {
  z-index: var(--juxt-z-popover);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--juxt-border);
  border-radius: var(--juxt-radius-md);
  background: var(--juxt-surface-raised);
  box-shadow: var(--juxt-shadow-md);
  animation: j-editor-bubble-in var(--juxt-duration-fast) var(--juxt-ease-out);
}
@keyframes j-editor-bubble-in {
from {
    opacity: 0;
    transform: translateY(calc(var(--juxt-motion-shift) * 0.5)) scale(var(--juxt-motion-scale));
}
}

/* Slash menu */
.j-editor__slash {
  z-index: var(--juxt-z-popover);
  width: 17rem;
  max-height: min(20rem, var(--j-available-height, 20rem));
  padding: var(--juxt-space-1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.j-editor__slash-label {
  padding: var(--juxt-space-1-5) var(--juxt-space-2) var(--juxt-space-1);
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-xs);
  font-weight: var(--juxt-weight-medium);
}
.j-editor__slash-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--juxt-space-2-5);
  padding: var(--juxt-space-1-5) var(--juxt-space-2);
  border-radius: var(--juxt-radius-sm);
  cursor: pointer;
  user-select: none;
}
.j-editor__slash-item.is-active {
  background: var(--juxt-surface-hover);
}
.j-editor__slash-item.is-active::before {
  content: '';
  position: absolute;
  top: 0.625rem;
  bottom: 0.625rem;
  left: 0;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--juxt-accent);
}
.j-editor__slash-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--juxt-border);
  border-radius: var(--juxt-radius-sm);
  background: var(--juxt-surface);
  color: var(--juxt-fg-secondary);
}
.j-editor__slash-icon > svg {
  width: 1rem;
  height: 1rem;
}
.j-editor__slash-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.j-editor__slash-title {
  color: var(--juxt-fg);
  font-size: var(--juxt-text-sm);
  font-weight: var(--juxt-weight-medium);
}
.j-editor__slash-description {
  overflow: hidden;
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.j-editor__slash-md {
  color: var(--juxt-fg-muted);
  font-family: var(--juxt-font-mono);
  font-size: var(--juxt-text-2xs);
}
.j-editor__slash-empty {
  padding: var(--juxt-space-3) var(--juxt-space-2);
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-sm);
}

/* Link editor */
.j-editor__link {
  z-index: var(--juxt-z-popover);
  display: flex;
  align-items: center;
  gap: 2px;
  width: min(22rem, calc(100vw - 16px));
  padding: 3px 3px 3px var(--juxt-space-2-5);
}
.j-editor__link-icon {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  color: var(--juxt-fg-muted);
}
.j-editor__link-input {
  flex: 1;
  min-width: 0;
  height: var(--juxt-control-sm);
  padding: 0 var(--juxt-space-1-5);
  border: 0;
  outline: none;
  background: transparent;
  color: var(--juxt-fg);
  font: inherit;
  font-size: var(--juxt-text-sm);
}
.j-editor__link-input::placeholder {
  color: var(--juxt-fg-muted);
}
@media (prefers-reduced-motion: reduce) {
.j-editor__bubble {
    animation: none;
}
}
}

@layer theme, base, juxt, components, utilities;

/*
 * Juxt's component styles live in the `juxt` cascade layer. The order below
 * puts it above CSS resets (Tailwind's `base`) and below utilities, so a
 * class like `hidden` or `w-full` on a component always wins | and any
 * unlayered CSS of your own does too. Without Tailwind the extra names are
 * simply empty layers.
 */

/*
 * Juxt design tokens
 *
 * One source of truth for colour, space, radius, type, elevation, motion and
 * layering. Components never hardcode these values | they read them here.
 *
 * Light is the default. Dark applies under `.dark` or `[data-theme="dark"]`
 * on any ancestor (usually <html>).
 */

:root,
.light,
[data-theme='light'] {
  color-scheme: light;

  /* Surfaces */
  --juxt-bg: #fcfcfc;
  --juxt-surface: #ffffff;
  --juxt-surface-raised: #ffffff;
  --juxt-surface-sunken: #f4f4f5;
  --juxt-surface-hover: #f1f1f2;
  --juxt-surface-active: #e9e9eb;
  --juxt-overlay: rgb(9 9 11 / 0.32);

  /* Lines */
  --juxt-border: #e4e4e7;
  --juxt-border-subtle: #ededef;
  --juxt-border-strong: #d1d1d6;

  /* Text */
  --juxt-fg: #09090b;
  --juxt-fg-secondary: #52525b;
  --juxt-fg-muted: #71717a;
  --juxt-fg-disabled: #a1a1aa;

  /* Ink | the inverted neutral used by primary actions */
  --juxt-ink: #09090b;
  --juxt-ink-hover: #27272a;
  --juxt-ink-fg: #fafafa;

  /* Accent */
  --juxt-accent: #079d6b;
  --juxt-accent-hover: #068a5e;
  --juxt-accent-fg: #ffffff;
  --juxt-accent-strong: #057a53;
  --juxt-accent-text: #057a53;
  --juxt-accent-soft: rgb(7 157 107 / 0.1);
  --juxt-accent-border: rgb(7 157 107 / 0.28);
  --juxt-ring: rgb(7 157 107 / 0.55);
  --juxt-ring-soft: rgb(7 157 107 / 0.16);

  /* Feedback */
  --juxt-danger: #dc2626;
  --juxt-danger-hover: #c21f1f;
  --juxt-danger-fg: #ffffff;
  --juxt-danger-text: #c81e1e;
  --juxt-danger-soft: rgb(220 38 38 / 0.08);
  --juxt-danger-border: rgb(220 38 38 / 0.28);
  --juxt-danger-ring: rgb(220 38 38 / 0.16);

  --juxt-warning: #d97706;
  --juxt-warning-text: #a35a04;
  --juxt-warning-soft: rgb(217 119 6 / 0.1);
  --juxt-warning-border: rgb(217 119 6 / 0.28);

  --juxt-info: #2563eb;
  --juxt-info-text: #1d4fc4;
  --juxt-info-soft: rgb(37 99 235 / 0.08);
  --juxt-info-border: rgb(37 99 235 / 0.24);

  --juxt-success: var(--juxt-accent);
  --juxt-success-text: var(--juxt-accent-text);
  --juxt-success-soft: var(--juxt-accent-soft);
  --juxt-success-border: var(--juxt-accent-border);

  /* Elevation | borders do most of the work, shadows only lift */
  --juxt-shadow-xs: 0 1px 1px rgb(9 9 11 / 0.04);
  --juxt-shadow-sm: 0 1px 2px rgb(9 9 11 / 0.05), 0 1px 1px rgb(9 9 11 / 0.03);
  --juxt-shadow-md: 0 4px 12px -2px rgb(9 9 11 / 0.08), 0 2px 4px -2px rgb(9 9 11 / 0.05);
  --juxt-shadow-lg: 0 16px 40px -8px rgb(9 9 11 / 0.16), 0 4px 12px -4px rgb(9 9 11 / 0.08);
  --juxt-control-highlight: inset 0 1px 0 rgb(255 255 255 / 0.12);

  --juxt-tooltip-bg: #18181b;
  --juxt-tooltip-fg: #fafafa;
  --juxt-tooltip-border: transparent;
}

.dark,
[data-theme='dark'] {
  color-scheme: dark;

  --juxt-bg: #09090b;
  --juxt-surface: #111113;
  --juxt-surface-raised: #18181b;
  --juxt-surface-sunken: #0c0c0e;
  --juxt-surface-hover: #1e1e22;
  --juxt-surface-active: #26262b;
  --juxt-overlay: rgb(0 0 0 / 0.6);

  --juxt-border: #27272a;
  --juxt-border-subtle: #1f1f23;
  --juxt-border-strong: #3a3a40;

  --juxt-fg: #fafafa;
  --juxt-fg-secondary: #a1a1aa;
  --juxt-fg-muted: #71717a;
  --juxt-fg-disabled: #52525b;

  --juxt-ink: #fafafa;
  --juxt-ink-hover: #e4e4e7;
  --juxt-ink-fg: #09090b;

  --juxt-accent: #079d6b;
  --juxt-accent-hover: #08b079;
  --juxt-accent-fg: #ffffff;
  --juxt-accent-strong: #067a53;
  --juxt-accent-text: #1fc48a;
  --juxt-accent-soft: rgb(7 157 107 / 0.14);
  --juxt-accent-border: rgb(31 196 138 / 0.28);
  --juxt-ring: rgb(31 196 138 / 0.6);
  --juxt-ring-soft: rgb(7 157 107 / 0.24);

  --juxt-danger: #d63a3f;
  --juxt-danger-hover: #c53237;
  --juxt-danger-fg: #ffffff;
  --juxt-danger-text: #ff7a7e;
  --juxt-danger-soft: rgb(229 72 77 / 0.14);
  --juxt-danger-border: rgb(255 122 126 / 0.28);
  --juxt-danger-ring: rgb(229 72 77 / 0.24);

  --juxt-warning: #f5a524;
  --juxt-warning-text: #f7b955;
  --juxt-warning-soft: rgb(245 165 36 / 0.12);
  --juxt-warning-border: rgb(247 185 85 / 0.26);

  --juxt-info: #4f8cff;
  --juxt-info-text: #85adff;
  --juxt-info-soft: rgb(79 140 255 / 0.13);
  --juxt-info-border: rgb(133 173 255 / 0.26);

  --juxt-shadow-xs: 0 1px 1px rgb(0 0 0 / 0.3);
  --juxt-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --juxt-shadow-md: 0 8px 20px -4px rgb(0 0 0 / 0.5), 0 2px 6px -2px rgb(0 0 0 / 0.4);
  --juxt-shadow-lg: 0 24px 56px -12px rgb(0 0 0 / 0.7), 0 6px 16px -6px rgb(0 0 0 / 0.5);
  --juxt-control-highlight: inset 0 1px 0 rgb(255 255 255 / 0.04);

  --juxt-tooltip-bg: #26262b;
  --juxt-tooltip-fg: #fafafa;
  --juxt-tooltip-border: #3a3a40;
}

:root {
  /* Type */
  --juxt-font-sans: 'Inter Variable', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --juxt-font-mono: 'JetBrains Mono Variable', 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --juxt-text-2xs: 0.6875rem; /* 11 */
  --juxt-text-xs: 0.75rem; /* 12 */
  --juxt-text-sm: 0.8125rem; /* 13 */
  --juxt-text-md: 0.875rem; /* 14 */
  --juxt-text-lg: 1rem; /* 16 */
  --juxt-text-xl: 1.125rem; /* 18 */
  --juxt-text-2xl: 1.375rem; /* 22 */
  --juxt-text-3xl: 1.75rem; /* 28 */
  --juxt-text-4xl: 2.5rem; /* 40 */

  --juxt-leading-tight: 1.2;
  --juxt-leading-snug: 1.4;
  --juxt-leading-normal: 1.55;

  --juxt-weight-regular: 400;
  --juxt-weight-medium: 500;
  --juxt-weight-semibold: 600;

  --juxt-tracking-tight: -0.011em;
  --juxt-tracking-tighter: -0.022em;

  /* Space | a 4px grid */
  --juxt-space-0-5: 0.125rem; /* 2 */
  --juxt-space-1: 0.25rem; /* 4 */
  --juxt-space-1-5: 0.375rem; /* 6 */
  --juxt-space-2: 0.5rem; /* 8 */
  --juxt-space-2-5: 0.625rem; /* 10 */
  --juxt-space-3: 0.75rem; /* 12 */
  --juxt-space-4: 1rem; /* 16 */
  --juxt-space-5: 1.25rem; /* 20 */
  --juxt-space-6: 1.5rem; /* 24 */
  --juxt-space-8: 2rem; /* 32 */
  --juxt-space-10: 2.5rem; /* 40 */
  --juxt-space-12: 3rem; /* 48 */

  /* Control heights */
  --juxt-control-xs: 1.5rem; /* 24 */
  --juxt-control-sm: 1.75rem; /* 28 */
  --juxt-control-md: 2.125rem; /* 34 */
  --juxt-control-lg: 2.5rem; /* 40 */

  /* Radius */
  --juxt-radius-xs: 0.25rem; /* 4 */
  --juxt-radius-sm: 0.375rem; /* 6 */
  --juxt-radius-md: 0.5rem; /* 8 */
  --juxt-radius-lg: 0.75rem; /* 12 */
  --juxt-radius-full: 9999px;

  /* Motion */
  --juxt-duration-instant: 80ms;
  --juxt-duration-fast: 120ms;
  --juxt-duration-normal: 180ms;
  --juxt-duration-slow: 240ms;

  --juxt-ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --juxt-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --juxt-ease-in: cubic-bezier(0.4, 0, 1, 1);

  /* Distance things travel when they enter. Zeroed for reduced motion. */
  --juxt-motion-shift: 4px;
  --juxt-motion-scale: 0.97;

  /* Layers */
  --juxt-z-sticky: 20;
  --juxt-z-dropdown: 50;
  --juxt-z-overlay: 100;
  --juxt-z-modal: 110;
  --juxt-z-popover: 120;
  --juxt-z-toast: 130;
  --juxt-z-tooltip: 140;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    /* Things still fade | they just stop travelling. */
    --juxt-motion-shift: 0px;
    --juxt-motion-scale: 1;
    --juxt-duration-slow: 140ms;
    --juxt-duration-normal: 120ms;
  }
}

@layer juxt {
/*
 * Shared primitives every component leans on: the focus ring, the spinner,
 * the kbd hint and screen-reader helpers. Kept deliberately small.
 */

.j-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*
 * The focus ring. It starts flush against the element and settles 2px out,
 * which reads as a small, confident "here" rather than a flash.
 */
.j-focusable {
  outline: 2px solid transparent;
  outline-offset: 0;
  transition-property: outline-color, outline-offset;
  transition-duration: var(--juxt-duration-fast);
  transition-timing-function: var(--juxt-ease-out);
}

.j-focusable:focus-visible {
  outline-color: var(--juxt-ring);
  outline-offset: 2px;
}

.j-spinner {
  display: block;
  flex: none;
  animation: j-spin 700ms linear infinite;
}

.j-spinner circle {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
}

.j-spinner .j-spinner__track {
  opacity: 0.2;
}

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

@media (prefers-reduced-motion: reduce) {
  .j-spinner {
    animation-duration: 1400ms;
  }
}

.j-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 var(--juxt-space-1);
  border: 1px solid var(--juxt-border);
  border-bottom-width: 2px;
  border-radius: var(--juxt-radius-xs);
  background: var(--juxt-surface);
  color: var(--juxt-fg-muted);
  font-family: var(--juxt-font-sans);
  font-size: var(--juxt-text-2xs);
  font-weight: var(--juxt-weight-medium);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Popover surfaces (select, menu) share one entrance. */
.j-pop-enter-active {
  transition:
    opacity var(--juxt-duration-fast) var(--juxt-ease-out),
    transform var(--juxt-duration-normal) var(--juxt-ease-out);
}

.j-pop-leave-active {
  transition:
    opacity var(--juxt-duration-instant) var(--juxt-ease-in),
    transform var(--juxt-duration-instant) var(--juxt-ease-in);
}

.j-pop-enter-from,
.j-pop-leave-to {
  opacity: 0;
  transform: translateY(calc(var(--juxt-motion-shift) * var(--j-pop-dir, -1))) scale(var(--juxt-motion-scale));
}

/* A shared popover surface. */
.j-popover-surface {
  border: 1px solid var(--juxt-border);
  border-radius: var(--juxt-radius-md);
  background: var(--juxt-surface-raised);
  box-shadow: var(--juxt-shadow-md);
  color: var(--juxt-fg);
  font-family: var(--juxt-font-sans);
}
}

@layer juxt {
/*
 * `.j-control` is the shared frame for Input, Textarea and the Select trigger.
 */
.j-control {
  --j-control-height: var(--juxt-control-md);
  --j-control-px: var(--juxt-space-2-5);
  --j-control-font: var(--juxt-text-md);

  position: relative;
  display: flex;
  align-items: center;
  gap: var(--juxt-space-2);
  min-height: var(--j-control-height);
  padding: 0 var(--j-control-px);
  border: 1px solid var(--juxt-border);
  border-radius: var(--juxt-radius-sm);
  background: var(--juxt-surface);
  box-shadow: var(--juxt-shadow-xs);
  color: var(--juxt-fg);
  font-family: var(--juxt-font-sans);
  font-size: var(--j-control-font);
  cursor: text;
  transition:
    border-color var(--juxt-duration-fast) var(--juxt-ease-standard),
    box-shadow var(--juxt-duration-normal) var(--juxt-ease-out),
    background-color var(--juxt-duration-fast) var(--juxt-ease-standard);
}

.dark .j-control,
[data-theme='dark'] .j-control {
  background: var(--juxt-surface-sunken);
}

.j-control:hover:not(.is-disabled, :focus-within) {
  border-color: var(--juxt-border-strong);
}

/*
 * Focus: the border takes the accent and a soft halo grows out of it.
 * The halo is the same colour at low alpha, so it reads as one gesture.
 */
.j-control:focus-within,
.j-control.is-open {
  border-color: var(--juxt-accent);
  box-shadow: 0 0 0 3px var(--juxt-ring-soft);
}

.j-control.is-invalid {
  border-color: var(--juxt-danger-border);
}

.j-control.is-invalid:hover:not(.is-disabled, :focus-within) {
  border-color: var(--juxt-danger);
}

.j-control.is-invalid:focus-within,
.j-control.is-invalid.is-open {
  border-color: var(--juxt-danger);
  box-shadow: 0 0 0 3px var(--juxt-danger-ring);
}

.j-control.is-disabled {
  cursor: not-allowed;
  background: var(--juxt-surface-sunken);
  box-shadow: none;
  color: var(--juxt-fg-disabled);
}

.j-control.is-readonly {
  background: var(--juxt-surface-sunken);
}

.j-control--sm {
  --j-control-height: var(--juxt-control-sm);
  --j-control-px: var(--juxt-space-2);
  --j-control-font: var(--juxt-text-sm);
}

.j-control--lg {
  --j-control-height: var(--juxt-control-lg);
  --j-control-px: var(--juxt-space-3);
  --j-control-font: var(--juxt-text-md);
}

.j-control__adornment {
  display: inline-flex;
  flex: none;
  align-items: center;
  color: var(--juxt-fg-muted);
  transition: color var(--juxt-duration-fast) var(--juxt-ease-standard);
}

.j-control__adornment > svg {
  width: 1rem;
  height: 1rem;
}

.j-control:focus-within .j-control__adornment--leading {
  color: var(--juxt-fg-secondary);
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-accordion {
  display: flex;
  flex-direction: column;
  font-family: var(--juxt-font-sans);
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-accordion__item {
  border-bottom: 1px solid var(--juxt-border-subtle);
}
.dark .j-accordion__item,
[data-theme='dark'] .j-accordion__item {
  border-bottom-color: var(--juxt-border);
}
.j-accordion__heading {
  margin: 0;
  font: inherit;
}
.j-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--juxt-space-4);
  width: 100%;
  min-height: 3rem;
  padding: var(--juxt-space-3) 0;
  border: 0;
  border-radius: var(--juxt-radius-xs);
  background: transparent;
  color: var(--juxt-fg);
  font: inherit;
  font-size: var(--juxt-text-md);
  font-weight: var(--juxt-weight-medium);
  letter-spacing: var(--juxt-tracking-tight);
  text-align: left;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 0;
  -webkit-tap-highlight-color: transparent;
  transition:
    color var(--juxt-duration-fast) var(--juxt-ease-standard),
    outline-color var(--juxt-duration-fast) var(--juxt-ease-out),
    outline-offset var(--juxt-duration-fast) var(--juxt-ease-out);
}
.j-accordion__trigger:focus-visible {
  outline-color: var(--juxt-ring);
  outline-offset: 2px;
}
.j-accordion__trigger:disabled {
  color: var(--juxt-fg-disabled);
  cursor: not-allowed;
}
.j-accordion__chevron {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--juxt-fg-muted);
  transition:
    transform var(--juxt-duration-normal) var(--juxt-ease-out),
    color var(--juxt-duration-fast) var(--juxt-ease-standard);
}
.j-accordion__trigger:hover:not(:disabled) .j-accordion__chevron {
  color: var(--juxt-fg);
}
.j-accordion__item[data-state='open'] .j-accordion__chevron {
  transform: rotate(180deg);
}

/* Height follows content via grid rows | no measuring, no magic numbers. */
.j-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--juxt-duration-slow) var(--juxt-ease-out);
}
.j-accordion__item[data-state='open'] .j-accordion__panel {
  grid-template-rows: 1fr;
}
.j-accordion__panel-inner {
  min-height: 0;
  overflow: hidden;
}
.j-accordion__content {
  padding-bottom: var(--juxt-space-4);
  color: var(--juxt-fg-secondary);
  font-size: var(--juxt-text-md);
  line-height: var(--juxt-leading-normal);
  opacity: 0;
  transition: opacity var(--juxt-duration-fast) var(--juxt-ease-standard);
}
.j-accordion__item[data-state='open'] .j-accordion__content {
  opacity: 1;
  transition-delay: 60ms;
}
@media (prefers-reduced-motion: reduce) {
.j-accordion__panel,
  .j-accordion__chevron {
    transition: none;
}
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
/*
 * Alerts stay on the page's surface. Colour lives in the icon and a hairline
 * of the border | enough to be noticed, never enough to shout.
 */
.j-alert {
  --j-alert-accent: var(--juxt-fg-muted);
  --j-alert-border: var(--juxt-border);

  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--juxt-space-3);
  padding: var(--juxt-space-3) var(--juxt-space-4);
  border: 1px solid var(--j-alert-border);
  border-radius: var(--juxt-radius-md);
  background: var(--juxt-surface);
  color: var(--juxt-fg);
  font-family: var(--juxt-font-sans);
}
.j-alert--info {
  --j-alert-accent: var(--juxt-info-text);
}
.j-alert--success {
  --j-alert-accent: var(--juxt-success-text);
}
.j-alert--warning {
  --j-alert-accent: var(--juxt-warning-text);
  --j-alert-border: var(--juxt-warning-border);
}
.j-alert--destructive {
  --j-alert-accent: var(--juxt-danger-text);
  --j-alert-border: var(--juxt-danger-border);
}
.j-alert__icon {
  display: grid;
  flex: none;
  place-items: center;
  height: 1.25rem;
  color: var(--j-alert-accent);
}
.j-alert__icon > svg {
  width: 1rem;
  height: 1rem;
}
.j-alert__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--juxt-space-0-5);
  min-width: 0;
}
.j-alert__title {
  margin: 0;
  font-size: var(--juxt-text-md);
  font-weight: var(--juxt-weight-medium);
  line-height: 1.25rem;
  letter-spacing: var(--juxt-tracking-tight);
}
.j-alert__description {
  color: var(--juxt-fg-secondary);
  font-size: var(--juxt-text-sm);
  line-height: var(--juxt-leading-normal);
}
.j-alert__description > p {
  margin: 0;
}
.j-alert__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--juxt-space-2);
  margin-top: var(--juxt-space-2);
}
.j-alert:has(.j-alert__close) {
  padding-right: var(--juxt-space-10);
}
.j-alert__close {
  position: absolute;
  top: var(--juxt-space-2-5);
  right: var(--juxt-space-2-5);
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--juxt-radius-xs);
  background: transparent;
  color: var(--juxt-fg-muted);
  cursor: pointer;
  transition-property: background-color, color, outline-color, outline-offset;
}
.j-alert__close:hover {
  background: var(--juxt-surface-hover);
  color: var(--juxt-fg);
}
.j-alert__close > svg {
  width: 0.875rem;
  height: 0.875rem;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-aspect-ratio {
  position: relative;
  width: 100%;
  aspect-ratio: var(--j-aspect-ratio, 16 / 9);
}
.j-aspect-ratio__content {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.j-aspect-ratio__content > :where(img, video, iframe, canvas) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-avatar {
  --j-avatar-size: 2rem;
  --j-avatar-font: var(--juxt-text-xs);
  --j-avatar-status: 0.5rem;
  --j-avatar-radius: var(--juxt-radius-full);

  position: relative;
  display: inline-flex;
  flex: none;
  width: var(--j-avatar-size);
  height: var(--j-avatar-size);
  font-family: var(--juxt-font-sans);
  vertical-align: middle;
}
.j-avatar--xs {
  --j-avatar-size: 1.25rem;
  --j-avatar-font: 0.5625rem;
  --j-avatar-status: 0.375rem;
}
.j-avatar--sm {
  --j-avatar-size: 1.5rem;
  --j-avatar-font: 0.625rem;
  --j-avatar-status: 0.4375rem;
}
.j-avatar--lg {
  --j-avatar-size: 2.5rem;
  --j-avatar-font: var(--juxt-text-sm);
  --j-avatar-status: 0.625rem;
}
.j-avatar--xl {
  --j-avatar-size: 3.5rem;
  --j-avatar-font: var(--juxt-text-lg);
  --j-avatar-status: 0.75rem;
}
.j-avatar--square {
  --j-avatar-radius: calc(var(--j-avatar-size) * 0.22);
}
.j-avatar__frame {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--j-avatar-radius);
  background: var(--juxt-surface-active);
  /* A hairline keeps light photos from bleeding into light backgrounds. */
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06);
}
.dark .j-avatar__frame,
[data-theme='dark'] .j-avatar__frame {
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}
.j-avatar__image,
.j-avatar__fallback {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}
.j-avatar__image {
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--juxt-duration-normal) var(--juxt-ease-standard);
}
.j-avatar[data-state='loaded'] .j-avatar__image {
  opacity: 1;
}
.j-avatar__fallback {
  display: grid;
  place-items: center;
  color: var(--juxt-fg-secondary);
  font-size: var(--j-avatar-font);
  font-weight: var(--juxt-weight-medium);
  letter-spacing: 0.02em;
  line-height: 1;
  user-select: none;
}
.j-avatar__glyph {
  width: 62%;
  height: 62%;
  margin-top: 18%;
  color: var(--juxt-fg-muted);
}
.j-avatar__status {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--j-avatar-status);
  height: var(--j-avatar-status);
  border-radius: var(--juxt-radius-full);
  background: var(--juxt-fg-muted);
  /* The ring is the page background, so the dot cuts cleanly out of the photo. */
  box-shadow: 0 0 0 2px var(--j-avatar-ring, var(--juxt-bg));
}
.j-avatar--square .j-avatar__status {
  right: -2px;
  bottom: -2px;
}
.j-avatar__status--online {
  background: var(--juxt-accent);
}
.j-avatar__status--away {
  background: var(--juxt-warning);
}
.j-avatar__status--busy {
  background: var(--juxt-danger);
}
.j-avatar__status--offline {
  background: var(--juxt-fg-disabled);
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-avatar-group {
  --j-avatar-group-overlap: 0.5em;

  display: inline-flex;
  align-items: center;
  font-family: var(--juxt-font-sans);
}
.j-avatar-group__item {
  position: relative;
  display: inline-flex;
  flex: none;
  border-radius: var(--juxt-radius-full);
  box-shadow: 0 0 0 2px var(--juxt-bg);
}
.j-avatar-group__item:not(:first-child) {
  margin-left: calc(var(--j-avatar-group-overlap) * -1);
}
.j-avatar-group__overflow {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--juxt-surface-active);
  color: var(--juxt-fg-secondary);
  font-size: var(--juxt-text-xs);
  font-weight: var(--juxt-weight-medium);
  font-variant-numeric: tabular-nums;
}
.j-avatar-group--xs .j-avatar-group__overflow {
  width: 1.25rem;
  height: 1.25rem;
  font-size: var(--juxt-text-2xs);
}
.j-avatar-group--sm .j-avatar-group__overflow {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.625rem;
}
.j-avatar-group--lg .j-avatar-group__overflow {
  width: 2.5rem;
  height: 2.5rem;
  font-size: var(--juxt-text-sm);
}
.j-avatar-group--xl .j-avatar-group__overflow {
  width: 3.5rem;
  height: 3.5rem;
  font-size: var(--juxt-text-lg);
}
.j-avatar-group__overflow--square {
  border-radius: 22%;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
/*
 * Badges are small, square-shouldered labels | closer to a stamp than a pill.
 * No borders: a quiet tint and the text colour carry the meaning.
 */
.j-badge {
  --j-badge-fg: var(--juxt-fg-secondary);
  --j-badge-bg: var(--juxt-surface-active);
  --j-badge-marker: var(--juxt-fg-muted);

  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.375rem;
  height: 1.25rem;
  padding: 0 0.375rem;
  border-radius: var(--juxt-radius-xs);
  background: var(--j-badge-bg);
  color: var(--j-badge-fg);
  font-family: var(--juxt-font-sans);
  font-size: var(--juxt-text-xs);
  font-weight: var(--juxt-weight-medium);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.j-badge--sm {
  gap: 0.3125rem;
  height: 1.0625rem;
  padding: 0 0.3125rem;
  font-size: var(--juxt-text-2xs);
}
.j-badge--success {
  --j-badge-fg: var(--juxt-success-text);
  --j-badge-bg: var(--juxt-success-soft);
  --j-badge-marker: var(--juxt-success);
}
.j-badge--warning {
  --j-badge-fg: var(--juxt-warning-text);
  --j-badge-bg: var(--juxt-warning-soft);
  --j-badge-marker: var(--juxt-warning);
}
.j-badge--destructive {
  --j-badge-fg: var(--juxt-danger-text);
  --j-badge-bg: var(--juxt-danger-soft);
  --j-badge-marker: var(--juxt-danger);
}

/* Accent is the only solid badge | reserve it for the thing that matters. */
.j-badge--accent {
  --j-badge-fg: var(--juxt-accent-fg);
  --j-badge-bg: var(--juxt-accent-strong);
  --j-badge-marker: var(--juxt-accent);
}

/* Status: text first, colour only in the marker. */
.j-badge--status {
  padding: 0;
  background: none;
  color: var(--juxt-fg-secondary);
}
.j-badge__marker {
  flex: none;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 1.5px;
  background: var(--j-badge-marker);
}
.j-badge--sm .j-badge__marker {
  width: 0.375rem;
  height: 0.375rem;
}
.j-badge__icon {
  display: inline-flex;
  margin-left: -0.0625rem;
}
.j-badge__icon > svg {
  width: 0.75rem;
  height: 0.75rem;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
/*
 * Banners run edge-to-edge across a page or section, unlike JAlert which sits
 * inline in a card or form. A flat tinted surface and a left accent bar
 * distinguish them from the bordered, neutral surface of an alert.
 */
.j-banner {
  --j-banner-accent: var(--juxt-fg-muted);
  --j-banner-bg: var(--juxt-surface-sunken);

  position: relative;
  display: flex;
  align-items: center;
  gap: var(--juxt-space-3);
  padding: var(--juxt-space-3) var(--juxt-space-5);
  border-left: 3px solid var(--j-banner-accent);
  background: var(--j-banner-bg);
  color: var(--juxt-fg);
  font-family: var(--juxt-font-sans);
}
.j-banner--info {
  --j-banner-accent: var(--juxt-info);
  --j-banner-bg: var(--juxt-info-soft);
}
.j-banner--success {
  --j-banner-accent: var(--juxt-success);
  --j-banner-bg: var(--juxt-success-soft);
}
.j-banner--warning {
  --j-banner-accent: var(--juxt-warning);
  --j-banner-bg: var(--juxt-warning-soft);
}
.j-banner--destructive {
  --j-banner-accent: var(--juxt-danger);
  --j-banner-bg: var(--juxt-danger-soft);
}
.j-banner__icon {
  display: grid;
  flex: none;
  place-items: center;
  height: 1.25rem;
  color: var(--j-banner-accent);
}
.j-banner__icon > svg {
  width: 1rem;
  height: 1rem;
}
.j-banner__body {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--juxt-space-1) var(--juxt-space-2);
  min-width: 0;
}
.j-banner__title {
  margin: 0;
  color: var(--juxt-fg);
  font-size: var(--juxt-text-md);
  font-weight: var(--juxt-weight-medium);
  letter-spacing: var(--juxt-tracking-tight);
}
.j-banner__description {
  color: var(--juxt-fg-secondary);
  font-size: var(--juxt-text-sm);
  line-height: var(--juxt-leading-normal);
}
.j-banner__description > p {
  margin: 0;
}
.j-banner__actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: var(--juxt-space-2);
}
.j-banner__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--juxt-radius-xs);
  background: transparent;
  color: var(--juxt-fg-muted);
  cursor: pointer;
  transition-property: background-color, color, outline-color, outline-offset;
}
.j-banner__close:hover {
  background: var(--juxt-surface-hover);
  color: var(--juxt-fg);
}
.j-banner__close > svg {
  width: 0.875rem;
  height: 0.875rem;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-breadcrumb {
  font-family: var(--juxt-font-sans);
}
.j-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--juxt-space-1-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.j-breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--juxt-space-1-5);
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-sm);
  line-height: var(--juxt-leading-snug);
}
.j-breadcrumb__item:not(:first-child)::before {
  content: '';
  display: inline-block;
  width: 0.3125rem;
  height: 0.3125rem;
  margin-right: var(--juxt-space-1-5);
  border-top: 1.5px solid var(--juxt-fg-disabled);
  border-right: 1.5px solid var(--juxt-fg-disabled);
  transform: rotate(45deg);
}
.j-breadcrumb__link {
  border-radius: var(--juxt-radius-xs);
  color: var(--juxt-fg-muted);
  text-decoration: none;
  transition: color var(--juxt-duration-fast) var(--juxt-ease-standard);
}
.j-breadcrumb__link:hover {
  color: var(--juxt-fg);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.j-breadcrumb__current {
  color: var(--juxt-fg);
  font-weight: var(--juxt-weight-medium);
  letter-spacing: var(--juxt-tracking-tight);
}
.j-breadcrumb__ellipsis {
  color: var(--juxt-fg-disabled);
  user-select: none;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-burger {
  --j-burger-size: var(--juxt-control-md);
  --j-burger-width: 1rem;
  --j-burger-gap: 0.3125rem;

  display: inline-grid;
  place-items: center;
  width: var(--j-burger-size);
  height: var(--j-burger-size);
  padding: 0;
  border: 0;
  border-radius: var(--juxt-radius-sm);
  background: transparent;
  color: var(--juxt-fg);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition-property: background-color, outline-color, outline-offset;
}
.j-burger--sm {
  --j-burger-size: var(--juxt-control-sm);
  --j-burger-width: 0.875rem;
  --j-burger-gap: 0.25rem;
}
.j-burger:hover {
  background: var(--juxt-surface-hover);
}
.j-burger__lines {
  position: relative;
  display: block;
  width: var(--j-burger-width);
  height: calc(var(--j-burger-gap) * 2 + 1.5px);
}
.j-burger__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition:
    transform var(--juxt-duration-normal) var(--juxt-ease-out),
    opacity var(--juxt-duration-fast) var(--juxt-ease-standard);
}
.j-burger__line:nth-child(1) {
  top: 0;
}
.j-burger__line:nth-child(2) {
  top: var(--j-burger-gap);
}
.j-burger__line:nth-child(3) {
  top: calc(var(--j-burger-gap) * 2);
}

/* Outer lines meet in the middle and cross; the middle one fades. */
.j-burger[data-state='open'] .j-burger__line:nth-child(1) {
  transform: translateY(var(--j-burger-gap)) rotate(45deg);
}
.j-burger[data-state='open'] .j-burger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}
.j-burger[data-state='open'] .j-burger__line:nth-child(3) {
  transform: translateY(calc(var(--j-burger-gap) * -1)) rotate(-45deg);
}
@media (prefers-reduced-motion: reduce) {
.j-burger__line {
    transition-duration: 0ms;
}
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-button {
  --j-button-height: var(--juxt-control-md);
  --j-button-px: var(--juxt-space-3);
  --j-button-gap: var(--juxt-space-1-5);
  --j-button-font: var(--juxt-text-md);
  --j-button-radius: var(--juxt-radius-sm);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--j-button-height);
  padding: 0 var(--j-button-px);
  border: 1px solid transparent;
  border-radius: var(--j-button-radius);
  font-family: var(--juxt-font-sans);
  font-size: var(--j-button-font);
  font-weight: var(--juxt-weight-medium);
  line-height: 1;
  letter-spacing: var(--juxt-tracking-tight);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition-property: background-color, border-color, color, box-shadow, transform, outline-color, outline-offset;
  transition-duration: var(--juxt-duration-fast);
  transition-timing-function: var(--juxt-ease-standard);
}

/* Pressed: a short, physical dip. Released slower than pressed. */
.j-button:active:not([aria-disabled='true'], :disabled) {
  transform: scale(0.97);
  transition-duration: var(--juxt-duration-instant);
}
@media (prefers-reduced-motion: reduce) {
.j-button:active:not([aria-disabled='true'], :disabled) {
    transform: none;
}
}
.j-button__content {
  display: inline-flex;
  align-items: center;
  gap: var(--j-button-gap);
  transition:
    opacity var(--juxt-duration-fast) var(--juxt-ease-standard),
    transform var(--juxt-duration-normal) var(--juxt-ease-out);
}
.j-button__icon {
  display: inline-flex;
  margin-inline: -0.125rem;
  opacity: 0.85;
}
.j-button__icon > svg {
  width: 1em;
  height: 1em;
}
.j-button.is-loading {
  cursor: progress;
}
.j-button.is-loading .j-button__content {
  opacity: 0;
  transform: scale(0.96);
}
.j-button__spinner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.j-button-spinner-enter-active {
  transition:
    opacity var(--juxt-duration-fast) var(--juxt-ease-out) 40ms,
    transform var(--juxt-duration-normal) var(--juxt-ease-out) 40ms;
}
.j-button-spinner-leave-active {
  transition:
    opacity var(--juxt-duration-instant) var(--juxt-ease-in),
    transform var(--juxt-duration-instant) var(--juxt-ease-in);
}
.j-button-spinner-enter-from,
.j-button-spinner-leave-to {
  opacity: 0;
  transform: scale(0.8);
}

/* Sizes */
.j-button--xs {
  --j-button-height: var(--juxt-control-xs);
  --j-button-px: var(--juxt-space-2);
  --j-button-gap: var(--juxt-space-1);
  --j-button-font: var(--juxt-text-xs);
  --j-button-radius: var(--juxt-radius-xs);
}
.j-button--sm {
  --j-button-height: var(--juxt-control-sm);
  --j-button-px: var(--juxt-space-2-5);
  --j-button-gap: var(--juxt-space-1-5);
  --j-button-font: var(--juxt-text-sm);
}
.j-button--lg {
  --j-button-height: var(--juxt-control-lg);
  --j-button-px: var(--juxt-space-4);
  --j-button-gap: var(--juxt-space-2);
  --j-button-font: var(--juxt-text-md);
  --j-button-radius: var(--juxt-radius-md);
}
.j-button--icon {
  width: var(--j-button-height);
  padding: 0;
}
.j-button--icon .j-button__content > svg,
.j-button--icon .j-button__content > :where(span, i) > svg {
  width: calc(var(--j-button-height) * 0.46);
  height: calc(var(--j-button-height) * 0.46);
}
.j-button--block {
  display: flex;
  width: 100%;
}

/* Variants */
.j-button--primary {
  background: var(--juxt-ink);
  color: var(--juxt-ink-fg);
  box-shadow: var(--juxt-shadow-xs), var(--juxt-control-highlight);
}
.j-button--primary:hover:not([aria-disabled='true'], :disabled) {
  background: var(--juxt-ink-hover);
}
.j-button--secondary {
  background: var(--juxt-surface-sunken);
  border-color: var(--juxt-border-subtle);
  color: var(--juxt-fg);
}
.dark .j-button--secondary,
[data-theme='dark'] .j-button--secondary {
  background: var(--juxt-surface-raised);
  border-color: var(--juxt-border-subtle);
}
.j-button--secondary:hover:not([aria-disabled='true'], :disabled) {
  background: var(--juxt-surface-active);
}
.j-button--outline {
  background: var(--juxt-surface);
  border-color: var(--juxt-border);
  color: var(--juxt-fg);
  box-shadow: var(--juxt-shadow-xs);
}
.j-button--outline:hover:not([aria-disabled='true'], :disabled) {
  background: var(--juxt-surface-hover);
  border-color: var(--juxt-border-strong);
}
.j-button--ghost {
  background: transparent;
  color: var(--juxt-fg-secondary);
}
.j-button--ghost:hover:not([aria-disabled='true'], :disabled) {
  background: var(--juxt-surface-hover);
  color: var(--juxt-fg);
}
.j-button--ghost:active:not([aria-disabled='true'], :disabled) {
  background: var(--juxt-surface-active);
}
.j-button--destructive {
  background: var(--juxt-danger);
  color: var(--juxt-danger-fg);
  box-shadow: var(--juxt-shadow-xs), var(--juxt-control-highlight);
}
.j-button--destructive:hover:not([aria-disabled='true'], :disabled) {
  background: var(--juxt-danger-hover);
}
.j-button--destructive:focus-visible {
  outline-color: var(--juxt-danger);
}

/* Disabled: quiet, not ghostly. */
.j-button:disabled,
.j-button[data-disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-card {
  --j-card-p: var(--juxt-space-5);

  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--juxt-radius-lg);
  color: var(--juxt-fg);
  font-family: var(--juxt-font-sans);
}
.j-card--outline {
  --j-avatar-ring: var(--juxt-surface);

  border: 1px solid var(--juxt-border);
  background: var(--juxt-surface);
  box-shadow: var(--juxt-shadow-xs);
}
.j-card--muted {
  --j-avatar-ring: var(--juxt-surface-sunken);

  border: 1px solid transparent;
  background: var(--juxt-surface-sunken);
}
.j-card--p-none {
  --j-card-p: 0;
}
.j-card--p-sm {
  --j-card-p: var(--juxt-space-3);
}
.j-card--p-lg {
  --j-card-p: var(--juxt-space-6);
}
.j-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--juxt-space-4);
  padding: var(--j-card-p) var(--j-card-p) 0;
}
.j-card__heading {
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-1);
  min-width: 0;
}
.j-card__title {
  margin: 0;
  font-size: var(--juxt-text-md);
  font-weight: var(--juxt-weight-semibold);
  line-height: var(--juxt-leading-snug);
  letter-spacing: var(--juxt-tracking-tight);
}
.j-card__description {
  margin: 0;
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-sm);
  line-height: var(--juxt-leading-normal);
}
.j-card__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--juxt-space-2);
  margin: calc(var(--juxt-space-1) * -1) 0;
}
.j-card__body {
  flex: 1;
  padding: var(--j-card-p);
  color: var(--juxt-fg-secondary);
  font-size: var(--juxt-text-md);
  line-height: var(--juxt-leading-normal);
}
.j-card__header + .j-card__body {
  padding-top: var(--juxt-space-4);
}
.j-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--juxt-space-2);
  padding: var(--juxt-space-3) var(--j-card-p);
  border-top: 1px solid var(--juxt-border-subtle);
}
.j-card__header:last-child {
  padding-bottom: var(--j-card-p);
}
.j-card--muted .j-card__footer {
  border-top-color: var(--juxt-border);
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-checkbox {
  --j-checkbox-size: 1rem;

  display: inline-flex;
  align-items: flex-start;
  gap: var(--juxt-space-2-5);
  font-family: var(--juxt-font-sans);
}
.j-checkbox__control {
  position: relative;
  display: inline-flex;
  flex: none;
  /* Align the box with the first line of the label. */
  margin-top: calc((var(--juxt-text-md) * var(--juxt-leading-snug) - var(--j-checkbox-size)) / 2);
}
.j-checkbox__input {
  position: absolute;
  inset: -4px;
  z-index: 1;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.j-checkbox__input:disabled {
  cursor: not-allowed;
}
.j-checkbox__box {
  display: grid;
  place-items: center;
  width: var(--j-checkbox-size);
  height: var(--j-checkbox-size);
  border: 1px solid var(--juxt-border-strong);
  border-radius: var(--juxt-radius-xs);
  background: var(--juxt-surface);
  box-shadow: var(--juxt-shadow-xs);
  color: var(--juxt-accent-fg);
  outline: 2px solid transparent;
  outline-offset: 0;
  transition:
    background-color var(--juxt-duration-fast) var(--juxt-ease-standard),
    border-color var(--juxt-duration-fast) var(--juxt-ease-standard),
    transform var(--juxt-duration-fast) var(--juxt-ease-out),
    outline-color var(--juxt-duration-fast) var(--juxt-ease-out),
    outline-offset var(--juxt-duration-fast) var(--juxt-ease-out);
}
.j-checkbox__box > svg {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.j-checkbox__input:hover:not(:disabled) + .j-checkbox__box {
  border-color: var(--juxt-fg-muted);
}
.j-checkbox__input:active:not(:disabled) + .j-checkbox__box {
  transform: scale(0.9);
}
.j-checkbox__input:focus-visible + .j-checkbox__box {
  outline-color: var(--juxt-ring);
  outline-offset: 2px;
}
.j-checkbox[data-state='checked'] .j-checkbox__box,
.j-checkbox[data-state='indeterminate'] .j-checkbox__box {
  border-color: var(--juxt-accent);
  background: var(--juxt-accent);
}
.j-checkbox[data-state='checked'] .j-checkbox__input:hover:not(:disabled) + .j-checkbox__box,
.j-checkbox[data-state='indeterminate'] .j-checkbox__input:hover:not(:disabled) + .j-checkbox__box {
  border-color: var(--juxt-accent-hover);
  background: var(--juxt-accent-hover);
}

/* The check draws itself in, just after the fill lands. */
.j-checkbox__check path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset var(--juxt-duration-fast) var(--juxt-ease-in);
}
.j-checkbox[data-state='checked'] .j-checkbox__check path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--juxt-duration-normal) var(--juxt-ease-out) 40ms;
}
.j-checkbox__dash {
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity var(--juxt-duration-instant) var(--juxt-ease-standard),
    transform var(--juxt-duration-fast) var(--juxt-ease-out);
}
.j-checkbox[data-state='indeterminate'] .j-checkbox__dash {
  opacity: 1;
  transform: none;
}
.j-checkbox[data-state='indeterminate'] .j-checkbox__check {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
.j-checkbox__check path,
  .j-checkbox[data-state='checked'] .j-checkbox__check path {
    transition-duration: 0ms;
}
.j-checkbox__input:active:not(:disabled) + .j-checkbox__box {
    transform: none;
}
}
.j-checkbox__text {
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-0-5);
  min-width: 0;
}
.j-checkbox__label {
  color: var(--juxt-fg);
  font-size: var(--juxt-text-md);
  line-height: var(--juxt-leading-snug);
  letter-spacing: var(--juxt-tracking-tight);
  cursor: pointer;
  user-select: none;
}
.j-checkbox__description {
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-sm);
  line-height: var(--juxt-leading-normal);
}
.j-checkbox.is-disabled .j-checkbox__box {
  opacity: 0.5;
  box-shadow: none;
}
.j-checkbox.is-disabled .j-checkbox__label {
  color: var(--juxt-fg-muted);
  cursor: not-allowed;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-collapsible {
  font-family: var(--juxt-font-sans);
}
.j-collapsible__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--juxt-space-1-5);
  padding: var(--juxt-space-1) 0;
  border: 0;
  border-radius: var(--juxt-radius-xs);
  background: transparent;
  color: var(--juxt-fg);
  font: inherit;
  font-size: var(--juxt-text-md);
  font-weight: var(--juxt-weight-medium);
  letter-spacing: var(--juxt-tracking-tight);
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 2px;
  -webkit-tap-highlight-color: transparent;
  transition:
    color var(--juxt-duration-fast) var(--juxt-ease-standard),
    outline-color var(--juxt-duration-fast) var(--juxt-ease-out);
}
.j-collapsible__trigger:disabled {
  color: var(--juxt-fg-disabled);
  cursor: not-allowed;
}
.j-collapsible__chevron {
  flex: none;
  width: 1rem;
  height: 1rem;
  color: var(--juxt-fg-muted);
  transition: transform var(--juxt-duration-normal) var(--juxt-ease-out);
}
.j-collapsible[data-state='open'] .j-collapsible__chevron {
  transform: rotate(180deg);
}
.j-collapsible__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--juxt-duration-slow) var(--juxt-ease-out);
}
.j-collapsible[data-state='open'] .j-collapsible__panel {
  grid-template-rows: 1fr;
}
.j-collapsible__panel-inner {
  min-height: 0;
  overflow: hidden;
}
.j-collapsible__content {
  padding-top: var(--juxt-space-2);
  color: var(--juxt-fg-secondary);
  font-size: var(--juxt-text-md);
  line-height: var(--juxt-leading-normal);
  opacity: 0;
  transition: opacity var(--juxt-duration-fast) var(--juxt-ease-standard);
}
.j-collapsible[data-state='open'] .j-collapsible__content {
  opacity: 1;
  transition-delay: 60ms;
}
@media (prefers-reduced-motion: reduce) {
.j-collapsible__panel,
  .j-collapsible__chevron {
    transition: none;
}
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-command__overlay {
  position: fixed;
  inset: 0;
  z-index: var(--juxt-z-overlay);
  background: var(--juxt-overlay);
}
.j-command__positioner {
  position: fixed;
  inset: 0;
  z-index: var(--juxt-z-modal);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(12vh, var(--juxt-space-4)) var(--juxt-space-4) var(--juxt-space-4);
}
.j-command {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 40rem;
  max-height: min(34rem, calc(100dvh - 12vh - var(--juxt-space-8)));
  overflow: hidden;
  border: 1px solid var(--juxt-border);
  border-radius: var(--juxt-radius-lg);
  background: var(--juxt-surface-raised);
  box-shadow: var(--juxt-shadow-lg);
  color: var(--juxt-fg);
  font-family: var(--juxt-font-sans);
}

/* Search */
.j-command__search {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--juxt-space-3);
  height: 3.25rem;
  padding: 0 var(--juxt-space-3) 0 var(--juxt-space-4);
  border-bottom: 1px solid var(--juxt-border-subtle);
}
.dark .j-command__search,
[data-theme='dark'] .j-command__search {
  border-bottom-color: var(--juxt-border);
}
.j-command__search-icon {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--juxt-fg-muted);
}
.j-command__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--juxt-fg);
  font: inherit;
  font-size: var(--juxt-text-lg);
  letter-spacing: var(--juxt-tracking-tight);
  caret-color: var(--juxt-accent);
}
.j-command__input::placeholder {
  color: var(--juxt-fg-muted);
}
.j-command__esc {
  height: 1.375rem;
  padding: 0 var(--juxt-space-1-5);
  cursor: pointer;
}
.j-command__esc:hover {
  color: var(--juxt-fg-secondary);
}

/* An indeterminate hairline: present, never loud. */
.j-command__progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  overflow: hidden;
}
.j-command__progress::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--juxt-accent), transparent);
  animation: j-command-progress 1.1s var(--juxt-ease-standard) infinite;
}
@keyframes j-command-progress {
from {
    transform: translateX(-100%);
}
to {
    transform: translateX(250%);
}
}
@media (prefers-reduced-motion: reduce) {
.j-command__progress::after {
    width: 100%;
    animation: j-command-pulse 1.4s ease-in-out infinite;
}
@keyframes j-command-pulse {
50% {
      opacity: 0.3;
}
}
}

/* List */
.j-command__list {
  flex: 1;
  min-height: 0;
  padding: var(--juxt-space-1-5);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: var(--juxt-space-8) var(--juxt-space-1-5);
}
.j-command__group + .j-command__group {
  margin-top: var(--juxt-space-1);
}
.j-command__group-label {
  padding: var(--juxt-space-2) var(--juxt-space-2-5) var(--juxt-space-1-5);
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-xs);
  font-weight: var(--juxt-weight-medium);
  user-select: none;
}
.j-command__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--juxt-space-2-5);
  height: 2.5rem;
  padding: 0 var(--juxt-space-2-5);
  border-radius: var(--juxt-radius-sm);
  color: var(--juxt-fg);
  font-size: var(--juxt-text-md);
  letter-spacing: var(--juxt-tracking-tight);
  cursor: pointer;
  user-select: none;
}

/* The one place the palette uses green: a hairline marking where you are. */
.j-command__item::before {
  content: '';
  position: absolute;
  top: 0.625rem;
  bottom: 0.625rem;
  left: 0;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--juxt-accent);
  opacity: 0;
  transform: scaleY(0.4);
  transition:
    opacity var(--juxt-duration-instant) var(--juxt-ease-standard),
    transform var(--juxt-duration-fast) var(--juxt-ease-out);
}
.j-command__item.is-active {
  background: var(--juxt-surface-hover);
}
.j-command__item.is-active::before {
  opacity: 1;
  transform: none;
}
.j-command__item[aria-disabled='true'] {
  color: var(--juxt-fg-disabled);
  cursor: not-allowed;
}
.j-command__item-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--juxt-fg-muted);
}
.j-command__item-icon > svg {
  width: 1rem;
  height: 1rem;
}
.j-command__item.is-active .j-command__item-icon {
  color: var(--juxt-fg);
}
.j-command__item-text {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: var(--juxt-space-2);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}
.j-command__item-label {
  flex: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.j-command__item-label.is-searching {
  color: var(--juxt-fg-secondary);
}
.j-command__item-label mark {
  background: none;
  color: var(--juxt-fg);
  font-weight: var(--juxt-weight-medium);
}
.j-command__item-description {
  overflow: hidden;
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-sm);
  text-overflow: ellipsis;
}
.j-command__item-shortcut {
  display: inline-flex;
  flex: none;
  gap: 3px;
}
.j-command__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--juxt-space-1-5);
  min-height: 8rem;
  padding: var(--juxt-space-6) var(--juxt-space-4);
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-sm);
  text-align: center;
}
.j-command__empty-title {
  color: var(--juxt-fg-secondary);
  font-size: var(--juxt-text-md);
  font-weight: var(--juxt-weight-medium);
}

/* Footer */
.j-command__footer {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--juxt-space-4);
  height: 2.25rem;
  padding: 0 var(--juxt-space-4);
  border-top: 1px solid var(--juxt-border-subtle);
  background: var(--juxt-surface-sunken);
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-xs);
}
.dark .j-command__footer,
[data-theme='dark'] .j-command__footer {
  border-top-color: var(--juxt-border);
  background: var(--juxt-surface);
}
.j-command__hint {
  display: inline-flex;
  align-items: center;
  gap: var(--juxt-space-1);
}
.j-command__hint .j-kbd + .j-kbd {
  margin-left: -1px;
}

/* Motion: quick in, quicker out. */
.j-command-overlay-enter-active {
  transition: opacity var(--juxt-duration-fast) var(--juxt-ease-out);
}
.j-command-overlay-leave-active {
  transition: opacity var(--juxt-duration-instant) var(--juxt-ease-in);
}
.j-command-overlay-enter-from,
.j-command-overlay-leave-to {
  opacity: 0;
}
.j-command-enter-active .j-command {
  transition:
    opacity var(--juxt-duration-fast) var(--juxt-ease-out),
    transform var(--juxt-duration-normal) var(--juxt-ease-out);
}
.j-command-leave-active .j-command {
  transition:
    opacity var(--juxt-duration-instant) var(--juxt-ease-in),
    transform var(--juxt-duration-instant) var(--juxt-ease-in);
}
.j-command-enter-from .j-command,
.j-command-leave-to .j-command {
  opacity: 0;
  transform: translateY(calc(var(--juxt-motion-shift) * -1)) scale(0.985);
}
@media (prefers-reduced-motion: reduce) {
.j-command-enter-from .j-command,
  .j-command-leave-to .j-command {
    transform: none;
}
}
@media (max-width: 639px) {
.j-command__positioner {
    padding: var(--juxt-space-2);
}
.j-command {
    max-height: calc(100dvh - var(--juxt-space-4));
}
.j-command__footer {
    display: none;
}
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-dialog__overlay {
  position: fixed;
  inset: 0;
  z-index: var(--juxt-z-overlay);
  background: var(--juxt-overlay);
}
.j-dialog__positioner {
  --j-dialog-shift: calc(var(--juxt-motion-shift) * 2);

  position: fixed;
  inset: 0;
  z-index: var(--juxt-z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--juxt-space-4);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.j-dialog__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: calc(100dvh - var(--juxt-space-8));
  border: 1px solid var(--juxt-border);
  border-radius: var(--juxt-radius-lg);
  background: var(--juxt-surface-raised);
  box-shadow: var(--juxt-shadow-lg);
  color: var(--juxt-fg);
  font-family: var(--juxt-font-sans);
  outline: none;
}
.j-dialog__panel--sm {
  max-width: 25rem;
}
.j-dialog__panel--md {
  max-width: 30rem;
}
.j-dialog__panel--lg {
  max-width: 40rem;
}
.j-dialog__header {
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-1-5);
  padding: var(--juxt-space-5) var(--juxt-space-12) 0 var(--juxt-space-5);
}
.j-dialog__title {
  margin: 0;
  font-size: var(--juxt-text-lg);
  font-weight: var(--juxt-weight-semibold);
  line-height: var(--juxt-leading-snug);
  letter-spacing: var(--juxt-tracking-tight);
}
.j-dialog__description {
  margin: 0;
  color: var(--juxt-fg-secondary);
  font-size: var(--juxt-text-md);
  line-height: var(--juxt-leading-normal);
}
.j-dialog__body {
  flex: 1;
  min-height: 0;
  padding: var(--juxt-space-4) var(--juxt-space-5) 0;
  overflow-y: auto;
  color: var(--juxt-fg-secondary);
  font-size: var(--juxt-text-md);
  line-height: var(--juxt-leading-normal);
}
.j-dialog__header + .j-dialog__footer {
  margin-top: var(--juxt-space-1);
}
.j-dialog__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--juxt-space-2);
  padding: var(--juxt-space-5);
}
.j-dialog__body:last-child {
  padding-bottom: var(--juxt-space-5);
}
.j-dialog__close {
  position: absolute;
  top: var(--juxt-space-3);
  right: var(--juxt-space-3);
  display: grid;
  place-items: center;
  width: var(--juxt-control-sm);
  height: var(--juxt-control-sm);
  padding: 0;
  border: 0;
  border-radius: var(--juxt-radius-sm);
  background: transparent;
  color: var(--juxt-fg-muted);
  cursor: pointer;
  transition-property: background-color, color, outline-color, outline-offset;
}
.j-dialog__close:hover {
  background: var(--juxt-surface-hover);
  color: var(--juxt-fg);
}
.j-dialog__close > svg {
  width: 1rem;
  height: 1rem;
}

/* Motion: the backdrop fades; the panel fades, lifts and settles. */
.j-dialog-overlay-enter-active {
  transition: opacity var(--juxt-duration-normal) var(--juxt-ease-out);
}
.j-dialog-overlay-leave-active {
  transition: opacity var(--juxt-duration-fast) var(--juxt-ease-in);
}
.j-dialog-overlay-enter-from,
.j-dialog-overlay-leave-to {
  opacity: 0;
}
.j-dialog-enter-active .j-dialog__panel {
  transition:
    opacity var(--juxt-duration-normal) var(--juxt-ease-out),
    transform var(--juxt-duration-slow) var(--juxt-ease-out);
}
.j-dialog-leave-active .j-dialog__panel {
  transition:
    opacity var(--juxt-duration-fast) var(--juxt-ease-in),
    transform var(--juxt-duration-fast) var(--juxt-ease-in);
}
.j-dialog-enter-from .j-dialog__panel,
.j-dialog-leave-to .j-dialog__panel {
  opacity: 0;
  transform: translateY(var(--j-dialog-shift)) scale(var(--juxt-motion-scale));
}
.j-dialog__panel.is-nudging {
  animation: j-dialog-nudge 220ms var(--juxt-ease-out);
}
@keyframes j-dialog-nudge {
40% {
    transform: scale(1.012);
}
}

/* Small screens: a sheet anchored to the bottom, within thumb reach. */
@media (max-width: 639px) {
.j-dialog__positioner {
    --j-dialog-shift: calc(var(--juxt-motion-shift) * 6);

    align-items: flex-end;
    padding: var(--juxt-space-2);
    padding-bottom: max(var(--juxt-space-2), env(safe-area-inset-bottom));
}
.j-dialog__panel {
    max-width: none;
    max-height: calc(100dvh - var(--juxt-space-12));
}
.j-dialog-enter-from .j-dialog__panel,
  .j-dialog-leave-to .j-dialog__panel {
    transform: translateY(var(--j-dialog-shift));
}
.j-dialog__footer {
    flex-direction: column-reverse;
}
.j-dialog__footer > * {
    width: 100%;
}
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 24rem;
  margin: 0 auto;
  padding: var(--juxt-space-8) var(--juxt-space-4);
  text-align: center;
  font-family: var(--juxt-font-sans);
}
.j-empty-state--sm {
  max-width: 18rem;
  padding: var(--juxt-space-6) var(--juxt-space-3);
}
.j-empty-state--lg {
  max-width: 28rem;
  padding: var(--juxt-space-12) var(--juxt-space-4);
}
.j-empty-state__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--juxt-space-4);
  border-radius: var(--juxt-radius-full);
  background: var(--juxt-surface-sunken);
  color: var(--juxt-fg-muted);
}
.j-empty-state--lg .j-empty-state__icon {
  width: 3.5rem;
  height: 3.5rem;
}
.j-empty-state__icon > svg {
  width: 1.25rem;
  height: 1.25rem;
}
.j-empty-state--lg .j-empty-state__icon > svg {
  width: 1.5rem;
  height: 1.5rem;
}
.j-empty-state__title {
  margin: 0;
  color: var(--juxt-fg);
  font-size: var(--juxt-text-lg);
  font-weight: var(--juxt-weight-semibold);
  letter-spacing: var(--juxt-tracking-tight);
}
.j-empty-state__description {
  margin-top: var(--juxt-space-1-5);
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-sm);
  line-height: var(--juxt-leading-normal);
}
.j-empty-state__description > p {
  margin: 0;
}
.j-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--juxt-space-2);
  margin-top: var(--juxt-space-5);
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-footer {
  background: var(--juxt-bg);
  color: var(--juxt-fg-secondary);
  font-family: var(--juxt-font-sans);
  font-size: var(--juxt-text-sm);
}
.j-footer.is-bordered {
  border-top: 1px solid var(--juxt-border-subtle);
}
.dark .j-footer.is-bordered,
[data-theme='dark'] .j-footer.is-bordered {
  border-top-color: var(--juxt-border);
}
.j-footer__inner {
  max-width: var(--j-footer-max);
  margin: 0 auto;
  padding: var(--juxt-space-12) var(--juxt-space-4) var(--juxt-space-8);
}
.j-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--juxt-space-10);
}
.j-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-3);
  max-width: 18rem;
  color: var(--juxt-fg-muted);
  line-height: var(--juxt-leading-normal);
}
.j-footer__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--juxt-space-8) var(--juxt-space-6);
}
@media (min-width: 768px) {
.j-footer__top {
    grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr);
}
.j-footer__columns {
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
}
}
.j-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--juxt-space-3) var(--juxt-space-6);
  margin-top: var(--juxt-space-12);
  padding-top: var(--juxt-space-6);
  border-top: 1px solid var(--juxt-border-subtle);
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-xs);
}
.dark .j-footer__bottom,
[data-theme='dark'] .j-footer__bottom {
  border-top-color: var(--juxt-border);
}
.j-footer__bottom a {
  color: inherit;
  text-decoration: none;
  transition: color var(--juxt-duration-fast) var(--juxt-ease-standard);
}
.j-footer__bottom a:hover {
  color: var(--juxt-fg);
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-3);
  min-width: 0;
}
.j-footer-column__title {
  margin: 0;
  color: var(--juxt-fg);
  font-size: var(--juxt-text-sm);
  font-weight: var(--juxt-weight-medium);
  letter-spacing: var(--juxt-tracking-tight);
}
.j-footer-column__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--juxt-space-2);
}
.j-footer-column__links a {
  border-radius: var(--juxt-radius-xs);
  color: var(--juxt-fg-muted);
  text-decoration: none;
  outline: 2px solid transparent;
  outline-offset: 0;
  transition:
    color var(--juxt-duration-fast) var(--juxt-ease-standard),
    outline-color var(--juxt-duration-fast) var(--juxt-ease-out),
    outline-offset var(--juxt-duration-fast) var(--juxt-ease-out);
}
.j-footer-column__links a:hover {
  color: var(--juxt-fg);
}
.j-footer-column__links a:focus-visible {
  outline-color: var(--juxt-ring);
  outline-offset: 2px;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-input__native {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: calc(var(--j-control-height) - 2px);
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: var(--juxt-tracking-tight);
}
.j-input__native::placeholder {
  color: var(--juxt-fg-muted);
  opacity: 1;
}
.j-input__native:disabled {
  cursor: not-allowed;
}
.j-input__native::-webkit-search-cancel-button {
  display: none;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-navbar {
  --j-navbar-height: 3.5rem;

  position: relative;
  z-index: var(--juxt-z-sticky);
  background: var(--juxt-bg);
  color: var(--juxt-fg);
  font-family: var(--juxt-font-sans);
}
.j-navbar.is-sticky {
  position: sticky;
  top: 0;
}
.j-navbar.is-bordered {
  box-shadow: inset 0 -1px 0 var(--juxt-border-subtle);
}
.dark .j-navbar.is-bordered,
[data-theme='dark'] .j-navbar.is-bordered {
  box-shadow: inset 0 -1px 0 var(--juxt-border);
}
.j-navbar__bar {
  display: flex;
  align-items: center;
  gap: var(--juxt-space-6);
  max-width: var(--j-navbar-max);
  height: var(--j-navbar-height);
  margin: 0 auto;
  padding: 0 var(--juxt-space-4);
}
.j-navbar__brand {
  display: flex;
  flex: none;
  align-items: center;
}
.j-navbar__links {
  display: flex;
  align-items: center;
  gap: var(--juxt-space-1);
  min-width: 0;
}
.j-navbar__end {
  display: flex;
  align-items: center;
  gap: var(--juxt-space-2);
  margin-left: auto;
}
.j-navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--juxt-space-2);
}
.j-navbar__burger {
  display: none;
  margin-right: calc(var(--juxt-space-2) * -1);
}

/* Mobile menu: a panel that drops from the bar, links stacked with big targets. */
.j-navbar__menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-4);
  max-height: calc(100dvh - var(--j-navbar-height));
  padding: var(--juxt-space-3) var(--juxt-space-4) var(--juxt-space-5);
  overflow-y: auto;
  border-bottom: 1px solid var(--juxt-border);
  background: var(--juxt-bg);
  box-shadow: var(--juxt-shadow-md);
}
.j-navbar__menu-links {
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-0-5);
}
.j-navbar__menu-links .j-navbar-link {
  justify-content: flex-start;
  height: 2.75rem;
  padding: 0 var(--juxt-space-3);
  font-size: var(--juxt-text-lg);
}
.j-navbar__menu-footer {
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-2);
  padding-top: var(--juxt-space-4);
  border-top: 1px solid var(--juxt-border-subtle);
}
.j-navbar__menu-footer > * {
  width: 100%;
}
.j-navbar-menu-enter-active {
  transition:
    opacity var(--juxt-duration-fast) var(--juxt-ease-out),
    transform var(--juxt-duration-normal) var(--juxt-ease-out);
}
.j-navbar-menu-leave-active {
  transition:
    opacity var(--juxt-duration-instant) var(--juxt-ease-in),
    transform var(--juxt-duration-instant) var(--juxt-ease-in);
}
.j-navbar-menu-enter-from,
.j-navbar-menu-leave-to {
  opacity: 0;
  transform: translateY(calc(var(--juxt-motion-shift) * -1));
}

/* Collapse points. Above them the menu never shows, below them the links hide. */
.j-navbar--collapse-never .j-navbar__menu {
  display: none !important;
}
@media (max-width: 639.98px) {
.j-navbar--collapse-sm .j-navbar__links { display: none;
}
.j-navbar--collapse-sm .j-navbar__burger { display: inline-grid;
}
}
@media (min-width: 640px) {
.j-navbar--collapse-sm .j-navbar__menu { display: none !important;
}
}
@media (max-width: 767.98px) {
.j-navbar--collapse-md .j-navbar__links { display: none;
}
.j-navbar--collapse-md .j-navbar__burger { display: inline-grid;
}
}
@media (min-width: 768px) {
.j-navbar--collapse-md .j-navbar__menu { display: none !important;
}
}
@media (max-width: 1023.98px) {
.j-navbar--collapse-lg .j-navbar__links { display: none;
}
.j-navbar--collapse-lg .j-navbar__burger { display: inline-grid;
}
}
@media (min-width: 1024px) {
.j-navbar--collapse-lg .j-navbar__menu { display: none !important;
}
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-navbar-link {
  display: inline-flex;
  align-items: center;
  gap: var(--juxt-space-1-5);
  height: var(--juxt-control-sm);
  padding: 0 var(--juxt-space-2-5);
  border-radius: var(--juxt-radius-sm);
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-sm);
  font-weight: var(--juxt-weight-medium);
  letter-spacing: var(--juxt-tracking-tight);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition-property: color, background-color, outline-color, outline-offset;
}
.j-navbar-link:hover {
  color: var(--juxt-fg);
}
.j-navbar-link.is-active {
  color: var(--juxt-fg);
}

/* In the mobile menu the current page gets a quiet fill, like a selected row. */
.j-navbar__menu .j-navbar-link.is-active {
  background: var(--juxt-surface-hover);
}
.j-navbar-link__icon {
  display: inline-flex;
  color: var(--juxt-fg-muted);
}
.j-navbar-link__icon > svg {
  width: 1rem;
  height: 1rem;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-pagination {
  --j-pagination-size: var(--juxt-control-md);

  display: flex;
  align-items: center;
  gap: var(--juxt-space-1);
  font-family: var(--juxt-font-sans);
}
.j-pagination--sm {
  --j-pagination-size: var(--juxt-control-sm);
}
.j-pagination__list {
  display: flex;
  align-items: center;
  gap: var(--juxt-space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.j-pagination__nav,
.j-pagination__page {
  display: grid;
  flex: none;
  place-items: center;
  width: var(--j-pagination-size);
  height: var(--j-pagination-size);
  border: 1px solid transparent;
  border-radius: var(--juxt-radius-sm);
  background: transparent;
  color: var(--juxt-fg-secondary);
  font-family: inherit;
  font-size: var(--juxt-text-sm);
  font-weight: var(--juxt-weight-medium);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition:
    background-color var(--juxt-duration-fast) var(--juxt-ease-standard),
    border-color var(--juxt-duration-fast) var(--juxt-ease-standard),
    color var(--juxt-duration-fast) var(--juxt-ease-standard);
}
.j-pagination__nav > svg {
  width: 1rem;
  height: 1rem;
}
.j-pagination__nav:hover:not(:disabled),
.j-pagination__page:hover:not(:disabled) {
  background: var(--juxt-surface-hover);
  color: var(--juxt-fg);
}
.j-pagination__nav:disabled {
  color: var(--juxt-fg-disabled);
  cursor: not-allowed;
}
.j-pagination__page.is-current {
  border-color: var(--juxt-border);
  background: var(--juxt-surface-active);
  color: var(--juxt-fg);
}
.j-pagination__page:disabled {
  color: var(--juxt-fg-disabled);
  cursor: not-allowed;
}
.j-pagination__ellipsis {
  display: grid;
  place-items: center;
  width: var(--j-pagination-size);
  height: var(--j-pagination-size);
  color: var(--juxt-fg-disabled);
}
.j-pagination__ellipsis > svg {
  width: 1rem;
  height: 1rem;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-popover {
  z-index: var(--juxt-z-popover);
  box-sizing: border-box;
  max-width: calc(100vw - 16px);
  max-height: var(--j-available-height, 32rem);
  padding: var(--juxt-space-4);
  overflow: auto;
  outline: none;
  font-size: var(--juxt-text-md);
  line-height: var(--juxt-leading-normal);
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-progress {
  --j-progress-height: 0.375rem;
  --j-progress-fill: var(--juxt-accent);

  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-2);
  width: 100%;
  font-family: var(--juxt-font-sans);
}
.j-progress--sm {
  --j-progress-height: 0.25rem;
}
.j-progress--neutral {
  --j-progress-fill: var(--juxt-fg);
}
.j-progress__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--juxt-space-3);
  font-size: var(--juxt-text-sm);
}
.j-progress__label {
  color: var(--juxt-fg);
  font-weight: var(--juxt-weight-medium);
  letter-spacing: var(--juxt-tracking-tight);
}
.j-progress__value {
  color: var(--juxt-fg-muted);
  font-variant-numeric: tabular-nums;
}
.j-progress__track {
  position: relative;
  height: var(--j-progress-height);
  overflow: hidden;
  border-radius: var(--juxt-radius-full);
  background: var(--juxt-surface-active);
}

/* Width changes are transforms, so updates glide without reflow. */
.j-progress__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--j-progress-fill);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--juxt-duration-slow) var(--juxt-ease-out);
}
.j-progress.is-indeterminate .j-progress__fill {
  width: 40%;
  transform: none;
  animation: j-progress-indeterminate 1.4s var(--juxt-ease-standard) infinite;
}
@keyframes j-progress-indeterminate {
from {
    transform: translateX(-100%);
}
to {
    transform: translateX(250%);
}
}
@media (prefers-reduced-motion: reduce) {
.j-progress.is-indeterminate .j-progress__fill {
    width: 100%;
    animation: j-progress-pulse 1.6s ease-in-out infinite;
}
@keyframes j-progress-pulse {
50% {
      opacity: 0.35;
}
}
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-radio {
  --j-radio-size: 1rem;

  display: inline-flex;
  align-items: flex-start;
  gap: var(--juxt-space-2-5);
  font-family: var(--juxt-font-sans);
}
.j-radio__control {
  position: relative;
  display: inline-flex;
  flex: none;
  margin-top: calc((var(--juxt-text-md) * var(--juxt-leading-snug) - var(--j-radio-size)) / 2);
}
.j-radio__input {
  position: absolute;
  inset: -4px;
  z-index: 1;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.j-radio__input:disabled {
  cursor: not-allowed;
}
.j-radio__circle {
  position: relative;
  display: block;
  width: var(--j-radio-size);
  height: var(--j-radio-size);
  border: 1px solid var(--juxt-border-strong);
  border-radius: var(--juxt-radius-full);
  background: var(--juxt-surface);
  box-shadow: var(--juxt-shadow-xs);
  outline: 2px solid transparent;
  outline-offset: 0;
  transition:
    background-color var(--juxt-duration-fast) var(--juxt-ease-standard),
    border-color var(--juxt-duration-fast) var(--juxt-ease-standard),
    transform var(--juxt-duration-fast) var(--juxt-ease-out),
    outline-color var(--juxt-duration-fast) var(--juxt-ease-out),
    outline-offset var(--juxt-duration-fast) var(--juxt-ease-out);
}

/* The inner dot grows out of the centre once the fill lands. */
.j-radio__circle::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: var(--juxt-radius-full);
  background: var(--juxt-accent-fg);
  opacity: 0;
  transform: scale(0.3);
  transition:
    opacity var(--juxt-duration-instant) var(--juxt-ease-standard),
    transform var(--juxt-duration-normal) var(--juxt-ease-out);
}
.j-radio__input:hover:not(:disabled) + .j-radio__circle {
  border-color: var(--juxt-fg-muted);
}
.j-radio__input:active:not(:disabled) + .j-radio__circle {
  transform: scale(0.9);
}
.j-radio__input:focus-visible + .j-radio__circle {
  outline-color: var(--juxt-ring);
  outline-offset: 2px;
}
.j-radio[data-state='checked'] .j-radio__circle {
  border-color: var(--juxt-accent);
  background: var(--juxt-accent);
}
.j-radio[data-state='checked'] .j-radio__input:hover:not(:disabled) + .j-radio__circle {
  border-color: var(--juxt-accent-hover);
  background: var(--juxt-accent-hover);
}
.j-radio[data-state='checked'] .j-radio__circle::after {
  opacity: 1;
  transform: none;
  transition-delay: 30ms;
}
.j-radio-group.is-invalid .j-radio:not([data-state='checked']) .j-radio__circle {
  border-color: var(--juxt-danger-border);
}
@media (prefers-reduced-motion: reduce) {
.j-radio__input:active:not(:disabled) + .j-radio__circle {
    transform: none;
}
}
.j-radio__text {
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-0-5);
  min-width: 0;
}
.j-radio__label {
  color: var(--juxt-fg);
  font-size: var(--juxt-text-md);
  line-height: var(--juxt-leading-snug);
  letter-spacing: var(--juxt-tracking-tight);
  cursor: pointer;
  user-select: none;
}
.j-radio__description {
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-sm);
  line-height: var(--juxt-leading-normal);
}
.j-radio.is-disabled .j-radio__circle {
  opacity: 0.5;
  box-shadow: none;
}
.j-radio.is-disabled .j-radio__label {
  color: var(--juxt-fg-muted);
  cursor: not-allowed;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-1-5);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--juxt-font-sans);
}
.j-radio-group__legend {
  display: inline-flex;
  gap: var(--juxt-space-0-5);
  margin-bottom: var(--juxt-space-1-5);
  padding: 0;
  color: var(--juxt-fg);
  font-size: var(--juxt-text-sm);
  font-weight: var(--juxt-weight-medium);
  line-height: var(--juxt-leading-snug);
  letter-spacing: var(--juxt-tracking-tight);
}
.j-radio-group__description,
.j-radio-group__error {
  margin: calc(var(--juxt-space-1) * -1) 0 var(--juxt-space-1-5);
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-xs);
  line-height: var(--juxt-leading-normal);
}
.j-radio-group__error {
  margin: var(--juxt-space-1) 0 0;
  color: var(--juxt-danger-text);
}
.j-radio-group__items {
  display: flex;
}
.j-radio-group__items--vertical {
  flex-direction: column;
  gap: var(--juxt-space-3);
}
.j-radio-group__items--horizontal {
  flex-wrap: wrap;
  gap: var(--juxt-space-3) var(--juxt-space-6);
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-rating {
  --j-rating-size: 1.25rem;

  display: inline-flex;
  align-items: center;
  gap: var(--juxt-space-0-5);
  font-family: var(--juxt-font-sans);
}
.j-rating--sm {
  --j-rating-size: 1rem;
}
.j-rating--lg {
  --j-rating-size: 1.5rem;
}
.j-rating__star,
.j-rating__button {
  position: relative;
  display: inline-flex;
  flex: none;
  width: var(--j-rating-size);
  height: var(--j-rating-size);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--juxt-fg-disabled);
  cursor: default;
}
.j-rating__button {
  border-radius: var(--juxt-radius-xs);
  cursor: pointer;
  transition: transform var(--juxt-duration-fast) var(--juxt-ease-out);
}
.j-rating__button:hover:not(:disabled) {
  transform: scale(1.1);
}
.j-rating__button:disabled {
  cursor: not-allowed;
}
.j-rating.is-disabled .j-rating__button {
  opacity: 0.5;
}
.j-rating__star-bg,
.j-rating__star-fill > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: currentColor;
  stroke: none;
}
.j-rating__star-fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: var(--juxt-warning);
  transition: width var(--juxt-duration-fast) var(--juxt-ease-out);
}
@media (prefers-reduced-motion: reduce) {
.j-rating__button:hover:not(:disabled) {
    transform: none;
}
.j-rating__star-fill {
    transition: none;
}
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-select__trigger {
  width: 100%;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.j-select__trigger:focus-visible {
  outline: none;
}
.j-select__trigger:focus-visible:not(.is-invalid) {
  border-color: var(--juxt-accent);
  box-shadow: 0 0 0 3px var(--juxt-ring-soft);
}
.j-select__trigger:disabled {
  cursor: not-allowed;
}
.j-select__value {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: var(--juxt-tracking-tight);
}
.j-select__value.is-placeholder {
  color: var(--juxt-fg-muted);
}
.j-select__trigger.is-disabled .j-select__value {
  color: var(--juxt-fg-disabled);
}
.j-select__chevron {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  margin-right: -0.125rem;
  color: var(--juxt-fg-muted);
}
.j-select__listbox {
  z-index: var(--juxt-z-popover);
  box-sizing: border-box;
  max-width: calc(100vw - 16px);
  max-height: min(18rem, var(--j-available-height, 18rem));
  margin: 0;
  padding: var(--juxt-space-1);
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  outline: none;
  scroll-padding-block: var(--juxt-space-1);
}
.j-select__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--juxt-space-2);
  min-height: var(--juxt-control-sm);
  padding: var(--juxt-space-1-5) var(--juxt-space-2);
  border-radius: var(--juxt-radius-xs);
  color: var(--juxt-fg);
  font-size: var(--juxt-text-md);
  letter-spacing: var(--juxt-tracking-tight);
  cursor: pointer;
  user-select: none;
}
.j-select__option.is-active {
  background: var(--juxt-surface-hover);
}
.j-select__option[aria-disabled='true'] {
  color: var(--juxt-fg-disabled);
  cursor: not-allowed;
}
.j-select__option-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.j-select__option-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.j-select__option-description {
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-xs);
}
.j-select__check {
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  color: var(--juxt-accent-text);
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity var(--juxt-duration-fast) var(--juxt-ease-out),
    transform var(--juxt-duration-fast) var(--juxt-ease-out);
}
.j-select__option.is-selected .j-select__check {
  opacity: 1;
  transform: none;
}
.j-select__empty {
  padding: var(--juxt-space-3) var(--juxt-space-2);
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-sm);
  text-align: center;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-separator {
  flex: none;
  background: var(--juxt-border-subtle);
}
.dark .j-separator,
[data-theme='dark'] .j-separator {
  background: var(--juxt-border);
}
.j-separator--horizontal {
  width: 100%;
  height: 1px;
}
.j-separator--vertical {
  align-self: stretch;
  width: 1px;
  min-height: 1rem;
}
.j-separator--labelled {
  display: flex;
  align-items: center;
  gap: var(--juxt-space-3);
  height: auto;
  background: none !important;
  color: var(--juxt-fg-muted);
  font-family: var(--juxt-font-sans);
  font-size: var(--juxt-text-xs);
}
.j-separator--labelled::before,
.j-separator--labelled::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--juxt-border-subtle);
}
.dark .j-separator--labelled::before,
.dark .j-separator--labelled::after,
[data-theme='dark'] .j-separator--labelled::before,
[data-theme='dark'] .j-separator--labelled::after {
  background: var(--juxt-border);
}
.j-separator__label {
  flex: none;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-sheet__overlay {
  position: fixed;
  inset: 0;
  z-index: var(--juxt-z-overlay);
  background: var(--juxt-overlay);
}
.j-sheet__positioner {
  position: fixed;
  inset: 0;
  z-index: var(--juxt-z-modal);
  display: flex;
  padding: var(--juxt-space-2);
}
.j-sheet__positioner--right {
  justify-content: flex-end;
}
.j-sheet__positioner--left {
  justify-content: flex-start;
}
.j-sheet__positioner--bottom {
  align-items: flex-end;
  padding-bottom: max(var(--juxt-space-2), env(safe-area-inset-bottom));
}

/* A floating panel with a small inset from the edges | calmer than edge-to-edge. */
.j-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--juxt-border);
  border-radius: var(--juxt-radius-lg);
  background: var(--juxt-surface-raised);
  box-shadow: var(--juxt-shadow-lg);
  color: var(--juxt-fg);
  font-family: var(--juxt-font-sans);
  outline: none;
}
.j-sheet--right,
.j-sheet--left {
  height: 100%;
}
.j-sheet--right.j-sheet--sm,
.j-sheet--left.j-sheet--sm {
  max-width: 20rem;
}
.j-sheet--right.j-sheet--md,
.j-sheet--left.j-sheet--md {
  max-width: 25rem;
}
.j-sheet--right.j-sheet--lg,
.j-sheet--left.j-sheet--lg {
  max-width: 35rem;
}
.j-sheet--bottom.j-sheet--sm {
  max-height: 20rem;
}
.j-sheet--bottom.j-sheet--md {
  max-height: 25rem;
}
.j-sheet--bottom.j-sheet--lg {
  max-height: min(35rem, calc(100dvh - var(--juxt-space-12)));
}
.j-sheet__header {
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-1-5);
  padding: var(--juxt-space-5) var(--juxt-space-12) var(--juxt-space-4) var(--juxt-space-5);
  border-bottom: 1px solid var(--juxt-border-subtle);
}
.dark .j-sheet__header,
[data-theme='dark'] .j-sheet__header {
  border-bottom-color: var(--juxt-border);
}
.j-sheet__title {
  margin: 0;
  font-size: var(--juxt-text-lg);
  font-weight: var(--juxt-weight-semibold);
  line-height: var(--juxt-leading-snug);
  letter-spacing: var(--juxt-tracking-tight);
}
.j-sheet__description {
  margin: 0;
  color: var(--juxt-fg-secondary);
  font-size: var(--juxt-text-md);
  line-height: var(--juxt-leading-normal);
}
.j-sheet__body {
  flex: 1;
  min-height: 0;
  padding: var(--juxt-space-5);
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--juxt-fg-secondary);
  font-size: var(--juxt-text-md);
  line-height: var(--juxt-leading-normal);
}
.j-sheet__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--juxt-space-2);
  padding: var(--juxt-space-4) var(--juxt-space-5);
  border-top: 1px solid var(--juxt-border-subtle);
}
.dark .j-sheet__footer,
[data-theme='dark'] .j-sheet__footer {
  border-top-color: var(--juxt-border);
}
.j-sheet__close {
  position: absolute;
  top: var(--juxt-space-3);
  right: var(--juxt-space-3);
  display: grid;
  place-items: center;
  width: var(--juxt-control-sm);
  height: var(--juxt-control-sm);
  padding: 0;
  border: 0;
  border-radius: var(--juxt-radius-sm);
  background: transparent;
  color: var(--juxt-fg-muted);
  cursor: pointer;
  transition-property: background-color, color, outline-color, outline-offset;
}
.j-sheet__close:hover {
  background: var(--juxt-surface-hover);
  color: var(--juxt-fg);
}
.j-sheet__close > svg {
  width: 1rem;
  height: 1rem;
}
.j-sheet.is-nudging {
  animation: j-sheet-nudge 220ms var(--juxt-ease-out);
}
@keyframes j-sheet-nudge {
40% {
    transform: scale(1.006);
}
}

/* Motion: the backdrop fades; the sheet slides in from its edge. */
.j-sheet-overlay-enter-active {
  transition: opacity var(--juxt-duration-normal) var(--juxt-ease-out);
}
.j-sheet-overlay-leave-active {
  transition: opacity var(--juxt-duration-fast) var(--juxt-ease-in);
}
.j-sheet-overlay-enter-from,
.j-sheet-overlay-leave-to {
  opacity: 0;
}
.j-sheet-enter-active .j-sheet {
  transition: transform 280ms var(--juxt-ease-out);
}
.j-sheet-leave-active .j-sheet {
  transition: transform var(--juxt-duration-normal) var(--juxt-ease-in);
}
.j-sheet-enter-from .j-sheet--right,
.j-sheet-leave-to .j-sheet--right {
  transform: translateX(calc(100% + var(--juxt-space-4)));
}
.j-sheet-enter-from .j-sheet--left,
.j-sheet-leave-to .j-sheet--left {
  transform: translateX(calc(-100% - var(--juxt-space-4)));
}
.j-sheet-enter-from .j-sheet--bottom,
.j-sheet-leave-to .j-sheet--bottom {
  transform: translateY(calc(100% + var(--juxt-space-4)));
}

/* Reduced motion: the sheet fades in place instead of travelling. */
@media (prefers-reduced-motion: reduce) {
.j-sheet-enter-active .j-sheet,
  .j-sheet-leave-active .j-sheet {
    transition: opacity var(--juxt-duration-normal) var(--juxt-ease-standard);
}
.j-sheet-enter-from .j-sheet,
  .j-sheet-leave-to .j-sheet {
    opacity: 0;
    transform: none !important;
}
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-sidebar {
  display: flex;
  flex-direction: column;
  width: 100%;
  /*
   * Not `height: 100%`: inside a parent that only has a min-height (e.g. a
   * `min-h-screen` flex row) a percentage height can't resolve, and a set
   * height also stops the flex/grid parent from stretching the sidebar, so it
   * would collapse to its content. Min and max of 100% pin it to a parent with
   * a real height (nav scrolls inside), and leave it `auto` everywhere else, so
   * the parent stretches it to full height and the footer stays at the bottom.
   */
  height: auto;
  min-height: 100%;
  max-height: 100%;
  color: var(--juxt-fg);
  font-family: var(--juxt-font-sans);
}
.j-sidebar__header {
  display: flex;
  align-items: center;
  gap: var(--juxt-space-2);
  padding: var(--juxt-space-3) var(--juxt-space-3) var(--juxt-space-2);
}
.j-sidebar__nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--juxt-space-4);
  min-height: 0;
  padding: var(--juxt-space-2);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.j-sidebar__footer {
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-0-5);
  padding: var(--juxt-space-2);
  border-top: 1px solid var(--juxt-border-subtle);
}
.dark .j-sidebar__footer,
[data-theme='dark'] .j-sidebar__footer {
  border-top-color: var(--juxt-border);
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-sidebar-group {
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-0-5);
}
.j-sidebar-group__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--juxt-space-2);
  margin: 0;
  padding: var(--juxt-space-1) var(--juxt-space-2);
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-xs);
  font-weight: var(--juxt-weight-medium);
  line-height: var(--juxt-leading-snug);
}
.j-sidebar-group__toggle {
  width: 100%;
  border: 0;
  border-radius: var(--juxt-radius-xs);
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition-property: color, outline-color, outline-offset;
}
.j-sidebar-group__toggle:hover {
  color: var(--juxt-fg-secondary);
}
.j-sidebar-group__chevron {
  flex: none;
  width: 0.75rem;
  height: 0.75rem;
  opacity: 0;
  transform: rotate(-90deg);
  transition:
    transform var(--juxt-duration-normal) var(--juxt-ease-out),
    opacity var(--juxt-duration-fast) var(--juxt-ease-standard);
}

/* The chevron only appears on hover or focus, or while the group is folded. */
.j-sidebar-group__toggle:hover .j-sidebar-group__chevron,
.j-sidebar-group__toggle:focus-visible .j-sidebar-group__chevron,
.j-sidebar-group[data-state='closed'] .j-sidebar-group__chevron {
  opacity: 1;
}
.j-sidebar-group[data-state='open'] .j-sidebar-group__chevron {
  transform: none;
}
.j-sidebar-group__panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--juxt-duration-normal) var(--juxt-ease-out);
}
.j-sidebar-group[data-state='closed'] .j-sidebar-group__panel {
  grid-template-rows: 0fr;
}
.j-sidebar-group__panel-inner {
  min-height: 0;
  overflow: hidden;
}
.j-sidebar-group__items {
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-0-5);
}
@media (prefers-reduced-motion: reduce) {
.j-sidebar-group__panel,
  .j-sidebar-group__chevron {
    transition: none;
}
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--juxt-space-2);
  min-height: var(--juxt-control-sm);
  padding: 0 var(--juxt-space-2);
  border-radius: var(--juxt-radius-sm);
  color: var(--juxt-fg-secondary);
  font-size: var(--juxt-text-sm);
  letter-spacing: var(--juxt-tracking-tight);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition-property: color, background-color, outline-color, outline-offset;
}
.j-sidebar-item:hover:not(.is-disabled) {
  background: var(--juxt-surface-hover);
  color: var(--juxt-fg);
}
.j-sidebar-item.is-active {
  background: var(--juxt-surface-hover);
  color: var(--juxt-fg);
  font-weight: var(--juxt-weight-medium);
}

/* Same marker as the command palette: a short accent line where you are. */
.j-sidebar-item.is-active::before {
  content: '';
  position: absolute;
  top: 0.4375rem;
  bottom: 0.4375rem;
  left: 0;
  width: 2px;
  border-radius: 0 2px 2px 0;
  background: var(--juxt-accent);
}
.j-sidebar-item.is-disabled {
  color: var(--juxt-fg-disabled);
  cursor: not-allowed;
}
.j-sidebar-item__icon {
  display: inline-flex;
  flex: none;
  color: var(--juxt-fg-muted);
}
.j-sidebar-item.is-active .j-sidebar-item__icon,
.j-sidebar-item:hover:not(.is-disabled) .j-sidebar-item__icon {
  color: var(--juxt-fg);
}
.j-sidebar-item__icon > svg {
  width: 1rem;
  height: 1rem;
}
.j-sidebar-item__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.j-sidebar-item__trailing {
  display: inline-flex;
  flex: none;
  align-items: center;
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-xs);
  font-variant-numeric: tabular-nums;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-skeleton {
  display: block;
  width: 100%;
  height: 1rem;
  border-radius: var(--juxt-radius-sm);
  background: var(--juxt-surface-active);
  animation: j-skeleton-pulse 1.8s var(--juxt-ease-standard) infinite;
}
.j-skeleton--circle {
  width: 2rem;
  height: 2rem;
  border-radius: var(--juxt-radius-full);
}
.j-skeleton--text {
  height: 0.75rem;
  border-radius: var(--juxt-radius-xs);
}
.j-skeleton-lines {
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-2);
  width: 100%;
}

/* A slow breath, not a shimmer | loading shouldn't compete for attention. */
@keyframes j-skeleton-pulse {
50% {
    opacity: 0.5;
}
}
@media (prefers-reduced-motion: reduce) {
.j-skeleton {
    animation: none;
}
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-slider {
  --j-slider-track: 0.25rem;
  --j-slider-thumb: 1rem;

  display: flex;
  align-items: center;
  width: 100%;
  padding: calc(var(--j-slider-thumb) / 2) 0;
  font-family: var(--juxt-font-sans);
  touch-action: none;
}
.j-slider--sm {
  --j-slider-track: 0.1875rem;
  --j-slider-thumb: 0.875rem;
}
.j-slider__track {
  position: relative;
  width: 100%;
  height: var(--j-slider-track);
  border-radius: var(--juxt-radius-full);
  background: var(--juxt-surface-active);
  cursor: pointer;
}
.j-slider.is-disabled .j-slider__track {
  cursor: not-allowed;
  opacity: 0.5;
}
.j-slider__range {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: var(--juxt-radius-full);
  background: var(--juxt-accent);
}
.j-slider__thumb {
  position: absolute;
  top: 50%;
  width: var(--j-slider-thumb);
  height: var(--j-slider-thumb);
  border-radius: var(--juxt-radius-full);
  background: var(--juxt-surface);
  box-shadow: 0 0 0 1px var(--juxt-border-strong), var(--juxt-shadow-sm);
  cursor: grab;
  transform: translate(-50%, -50%);
  transition:
    box-shadow var(--juxt-duration-fast) var(--juxt-ease-out),
    left var(--juxt-duration-fast) var(--juxt-ease-out);
}
.j-slider__thumb.is-dragging {
  cursor: grabbing;
  transition: none;
}
.j-slider__thumb:hover {
  box-shadow: 0 0 0 1px var(--juxt-accent), var(--juxt-shadow-sm);
}
.j-slider__thumb:focus-visible {
  outline-color: var(--juxt-ring);
  outline-offset: 3px;
}
.j-slider.is-disabled .j-slider__thumb {
  cursor: not-allowed;
}
.j-slider__bubble {
  position: absolute;
  bottom: calc(100% + var(--juxt-space-2));
  left: 50%;
  padding: var(--juxt-space-0-5) var(--juxt-space-1-5);
  border-radius: var(--juxt-radius-xs);
  background: var(--juxt-tooltip-bg);
  color: var(--juxt-tooltip-fg);
  font-size: var(--juxt-text-2xs);
  font-weight: var(--juxt-weight-medium);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}
@media (prefers-reduced-motion: reduce) {
.j-slider__thumb {
    transition: none;
}
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-spinner-wrap {
  display: inline-flex;
  color: var(--juxt-fg-muted);
  vertical-align: middle;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-stat {
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-1-5);
  font-family: var(--juxt-font-sans);
}
.j-stat__header {
  display: flex;
  align-items: center;
  gap: var(--juxt-space-1-5);
}
.j-stat__icon {
  display: grid;
  place-items: center;
  color: var(--juxt-fg-muted);
}
.j-stat__icon > svg {
  width: 0.875rem;
  height: 0.875rem;
}
.j-stat__label {
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-sm);
  font-weight: var(--juxt-weight-medium);
  letter-spacing: var(--juxt-tracking-tight);
}
.j-stat__row {
  display: flex;
  align-items: baseline;
  gap: var(--juxt-space-2);
}
.j-stat__value {
  color: var(--juxt-fg);
  font-size: var(--juxt-text-3xl);
  font-weight: var(--juxt-weight-semibold);
  line-height: var(--juxt-leading-tight);
  letter-spacing: var(--juxt-tracking-tighter);
  font-variant-numeric: tabular-nums;
}
.j-stat__delta {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-sm);
  font-weight: var(--juxt-weight-medium);
  font-variant-numeric: tabular-nums;
}
.j-stat__delta > svg {
  width: 0.875rem;
  height: 0.875rem;
}
.j-stat__delta--up {
  color: var(--juxt-success-text);
}
.j-stat__delta--down {
  color: var(--juxt-danger-text);
}
.j-stat__description {
  margin: 0;
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-xs);
  line-height: var(--juxt-leading-normal);
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-switch {
  --j-switch-w: 2rem;
  --j-switch-h: 1.125rem;
  --j-switch-pad: 2px;
  --j-switch-thumb: calc(var(--j-switch-h) - var(--j-switch-pad) * 2);

  display: inline-flex;
  align-items: flex-start;
  gap: var(--juxt-space-2-5);
  font-family: var(--juxt-font-sans);
}
.j-switch--sm {
  --j-switch-w: 1.625rem;
  --j-switch-h: 0.9375rem;
}
.j-switch__track {
  position: relative;
  flex: none;
  width: var(--j-switch-w);
  height: var(--j-switch-h);
  margin: calc((var(--juxt-text-md) * var(--juxt-leading-snug) - var(--j-switch-h)) / 2) 0 0;
  padding: 0;
  border: 0;
  border-radius: var(--juxt-radius-full);
  background: var(--juxt-border-strong);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.08);
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 0;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--juxt-duration-normal) var(--juxt-ease-standard),
    outline-color var(--juxt-duration-fast) var(--juxt-ease-out),
    outline-offset var(--juxt-duration-fast) var(--juxt-ease-out);
}
.j-switch__track:hover:not(:disabled) {
  background: var(--juxt-fg-disabled);
}
.j-switch__track:focus-visible {
  outline-color: var(--juxt-ring);
  outline-offset: 2px;
}
.j-switch[data-state='on'] .j-switch__track {
  background: var(--juxt-accent);
}
.j-switch[data-state='on'] .j-switch__track:hover:not(:disabled) {
  background: var(--juxt-accent-hover);
}
.j-switch__thumb {
  position: absolute;
  top: var(--j-switch-pad);
  left: var(--j-switch-pad);
  width: var(--j-switch-thumb);
  height: var(--j-switch-thumb);
  border-radius: var(--juxt-radius-full);
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2), 0 0 0 0.5px rgb(0 0 0 / 0.04);
  transition:
    transform var(--juxt-duration-normal) var(--juxt-ease-out),
    width var(--juxt-duration-fast) var(--juxt-ease-out);
}
.j-switch[data-state='on'] .j-switch__thumb {
  transform: translateX(calc(var(--j-switch-w) - var(--j-switch-thumb) - var(--j-switch-pad) * 2));
}

/* A whisper of stretch while pressed, so the thumb feels held. */
.j-switch__track:active:not(:disabled) .j-switch__thumb {
  width: calc(var(--j-switch-thumb) + 3px);
}
.j-switch[data-state='on'] .j-switch__track:active:not(:disabled) .j-switch__thumb {
  transform: translateX(calc(var(--j-switch-w) - var(--j-switch-thumb) - var(--j-switch-pad) * 2 - 3px));
}
@media (prefers-reduced-motion: reduce) {
.j-switch__track:active:not(:disabled) .j-switch__thumb {
    width: var(--j-switch-thumb);
}
.j-switch[data-state='on'] .j-switch__track:active:not(:disabled) .j-switch__thumb {
    transform: translateX(calc(var(--j-switch-w) - var(--j-switch-thumb) - var(--j-switch-pad) * 2));
}
}
.j-switch__text {
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-0-5);
  min-width: 0;
}
.j-switch__label {
  color: var(--juxt-fg);
  font-size: var(--juxt-text-md);
  line-height: var(--juxt-leading-snug);
  letter-spacing: var(--juxt-tracking-tight);
  cursor: pointer;
  user-select: none;
}
.j-switch__description {
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-sm);
  line-height: var(--juxt-leading-normal);
}
.j-switch.is-disabled .j-switch__track {
  cursor: not-allowed;
  opacity: 0.5;
}
.j-switch.is-disabled .j-switch__label {
  color: var(--juxt-fg-muted);
  cursor: not-allowed;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-tabs {
  --j-tab-height: var(--juxt-control-md);
  --j-tab-font: var(--juxt-text-md);

  display: flex;
  flex-direction: column;
  min-width: 0;
  font-family: var(--juxt-font-sans);
}
.j-tabs--sm {
  --j-tab-height: var(--juxt-control-sm);
  --j-tab-font: var(--juxt-text-sm);
}
.j-tabs__list {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.j-tabs__list::-webkit-scrollbar {
  display: none;
}
.j-tabs__tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: var(--juxt-space-1-5);
  height: var(--j-tab-height);
  padding: 0 var(--juxt-space-3);
  border: 0;
  background: transparent;
  color: var(--juxt-fg-muted);
  font: inherit;
  font-size: var(--j-tab-font);
  font-weight: var(--juxt-weight-medium);
  letter-spacing: var(--juxt-tracking-tight);
  white-space: nowrap;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: -2px;
  -webkit-tap-highlight-color: transparent;
  transition:
    color var(--juxt-duration-fast) var(--juxt-ease-standard),
    outline-color var(--juxt-duration-fast) var(--juxt-ease-out);
}
.j-tabs__tab:hover:not(:disabled) {
  color: var(--juxt-fg-secondary);
}
.j-tabs__tab[aria-selected='true'] {
  color: var(--juxt-fg);
}
.j-tabs__tab:focus-visible {
  outline-color: var(--juxt-ring);
}
.j-tabs__tab:disabled {
  color: var(--juxt-fg-disabled);
  cursor: not-allowed;
}
.j-tabs--fill .j-tabs__tab {
  flex: 1;
}
.j-tabs__indicator {
  position: absolute;
  left: 0;
  opacity: 0;
  pointer-events: none;
}
.j-tabs__indicator.is-ready {
  opacity: 1;
}
.j-tabs__indicator.is-animated {
  transition:
    transform var(--juxt-duration-slow) var(--juxt-ease-out),
    width var(--juxt-duration-slow) var(--juxt-ease-out);
}
@media (prefers-reduced-motion: reduce) {
.j-tabs__indicator.is-animated {
    transition: none;
}
}

/* Line */
.j-tabs--line .j-tabs__list {
  gap: var(--juxt-space-1);
  box-shadow: inset 0 -1px 0 var(--juxt-border);
}
.j-tabs--line .j-tabs__tab {
  padding: 0 var(--juxt-space-2);
  border-radius: var(--juxt-radius-sm) var(--juxt-radius-sm) 0 0;
}
.j-tabs--line .j-tabs__indicator {
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--juxt-fg);
}

/* Pill */
.j-tabs--pill .j-tabs__list {
  align-self: flex-start;
  padding: 3px;
  border-radius: var(--juxt-radius-md);
  background: var(--juxt-surface-sunken);
  box-shadow: inset 0 0 0 1px var(--juxt-border-subtle);
}
.j-tabs--pill.j-tabs--fill .j-tabs__list {
  align-self: stretch;
}
.j-tabs--pill .j-tabs__tab {
  --j-tab-height: calc(var(--juxt-control-md) - 6px);

  border-radius: var(--juxt-radius-sm);
}
.j-tabs--pill.j-tabs--sm .j-tabs__tab {
  --j-tab-height: calc(var(--juxt-control-sm) - 6px);

  padding: 0 var(--juxt-space-2-5);
}
.j-tabs--pill .j-tabs__indicator {
  top: 3px;
  bottom: 3px;
  border-radius: var(--juxt-radius-sm);
  background: var(--juxt-surface);
  box-shadow: var(--juxt-shadow-sm);
}
.dark .j-tabs--pill .j-tabs__indicator,
[data-theme='dark'] .j-tabs--pill .j-tabs__indicator {
  background: var(--juxt-surface-active);
}

/* Panels */
.j-tabs__panel {
  padding-top: var(--juxt-space-4);
  border-radius: var(--juxt-radius-sm);
  outline: 2px solid transparent;
  outline-offset: 2px;
  animation: j-tabs-panel-in var(--juxt-duration-normal) var(--juxt-ease-out);
}
.j-tabs__panel:focus-visible {
  outline-color: var(--juxt-ring);
}
@keyframes j-tabs-panel-in {
from {
    opacity: 0;
}
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
/*
 * Tags are pills, not stamps | fully rounded and carrying their own remove
 * affordance, which is what sets them apart from the static JBadge.
 */
.j-tag {
  --j-tag-fg: var(--juxt-fg-secondary);
  --j-tag-bg: var(--juxt-surface-active);

  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.3125rem;
  height: 1.375rem;
  padding: 0 var(--juxt-space-1) 0 var(--juxt-space-2-5);
  border-radius: var(--juxt-radius-full);
  background: var(--j-tag-bg);
  color: var(--j-tag-fg);
  font-family: var(--juxt-font-sans);
  font-size: var(--juxt-text-xs);
  font-weight: var(--juxt-weight-medium);
  line-height: 1;
  white-space: nowrap;
}
.j-tag--sm {
  height: 1.125rem;
  padding: 0 0.1875rem 0 var(--juxt-space-2);
  font-size: var(--juxt-text-2xs);
}
.j-tag--success {
  --j-tag-fg: var(--juxt-success-text);
  --j-tag-bg: var(--juxt-success-soft);
}
.j-tag--warning {
  --j-tag-fg: var(--juxt-warning-text);
  --j-tag-bg: var(--juxt-warning-soft);
}
.j-tag--destructive {
  --j-tag-fg: var(--juxt-danger-text);
  --j-tag-bg: var(--juxt-danger-soft);
}
.j-tag--accent {
  --j-tag-fg: var(--juxt-accent-fg);
  --j-tag-bg: var(--juxt-accent-strong);
}
.j-tag__icon {
  display: inline-flex;
  margin-left: -0.0625rem;
}
.j-tag__icon > svg {
  width: 0.75rem;
  height: 0.75rem;
}
.j-tag__label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.j-tag__remove {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  padding: 0;
  border: 0;
  border-radius: var(--juxt-radius-full);
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
  transition:
    background-color var(--juxt-duration-fast) var(--juxt-ease-standard),
    opacity var(--juxt-duration-fast) var(--juxt-ease-standard);
}
.j-tag--sm .j-tag__remove {
  width: 0.875rem;
  height: 0.875rem;
}
.j-tag__remove:hover:not(:disabled) {
  background: rgb(0 0 0 / 0.08);
  opacity: 1;
}
.dark .j-tag__remove:hover:not(:disabled),
[data-theme='dark'] .j-tag__remove:hover:not(:disabled) {
  background: rgb(255 255 255 / 0.12);
}
.j-tag__remove > svg {
  width: 0.625rem;
  height: 0.625rem;
}
.j-tag--sm .j-tag__remove > svg {
  width: 0.5rem;
  height: 0.5rem;
}
.j-tag.is-disabled {
  opacity: 0.5;
}
.j-tag__remove:disabled {
  cursor: not-allowed;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-textarea {
  align-items: stretch;
  padding: 0;
  cursor: auto;
}
.j-textarea__native {
  display: block;
  width: 100%;
  min-height: calc(var(--juxt-control-md) * 2);
  padding: var(--juxt-space-2) var(--juxt-space-2-5);
  border: 0;
  border-radius: inherit;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: var(--juxt-leading-normal);
  letter-spacing: var(--juxt-tracking-tight);
  resize: vertical;
}
.j-textarea__native.is-autoresize {
  resize: none;
  overflow-y: hidden;
}
.j-textarea__native::placeholder {
  color: var(--juxt-fg-muted);
  opacity: 1;
}
.j-textarea__native:disabled {
  cursor: not-allowed;
  resize: none;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-timeline {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--juxt-font-sans);
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-timeline-item {
  position: relative;
  display: flex;
  gap: var(--juxt-space-3);
  padding-bottom: var(--juxt-space-5);
}
.j-timeline-item:last-child {
  padding-bottom: 0;
}
.j-timeline-item__rail {
  position: relative;
  display: flex;
  flex: none;
  justify-content: center;
  width: 1rem;
}
.j-timeline-item__rail::before {
  content: '';
  position: absolute;
  top: 1rem;
  bottom: calc(var(--juxt-space-5) * -1);
  width: 1px;
  background: var(--juxt-border);
}
.j-timeline-item:last-child .j-timeline-item__rail::before {
  display: none;
}
.j-timeline-item__marker {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 0.625rem;
  height: 0.625rem;
  margin-top: 0.25rem;
  border: 2px solid var(--juxt-surface);
  border-radius: var(--juxt-radius-full);
  background: var(--juxt-fg-disabled);
  box-shadow: 0 0 0 1px var(--juxt-border);
}
.j-timeline-item--complete .j-timeline-item__marker {
  background: var(--juxt-accent);
  box-shadow: none;
}
.j-timeline-item--current .j-timeline-item__marker {
  background: var(--juxt-surface);
  box-shadow: 0 0 0 2px var(--juxt-accent);
}
.j-timeline-item__content {
  flex: 1;
  min-width: 0;
  padding-bottom: var(--juxt-space-0-5);
}
.j-timeline-item__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--juxt-space-2);
}
.j-timeline-item__title {
  margin: 0;
  color: var(--juxt-fg);
  font-size: var(--juxt-text-md);
  font-weight: var(--juxt-weight-medium);
  letter-spacing: var(--juxt-tracking-tight);
}
.j-timeline-item--upcoming .j-timeline-item__title {
  color: var(--juxt-fg-muted);
}
.j-timeline-item__time {
  color: var(--juxt-fg-muted);
  font-size: var(--juxt-text-xs);
  font-variant-numeric: tabular-nums;
}
.j-timeline-item__body {
  margin-top: var(--juxt-space-0-5);
  color: var(--juxt-fg-secondary);
  font-size: var(--juxt-text-sm);
  line-height: var(--juxt-leading-normal);
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-toaster {
  --j-toast-width: 22.5rem;
  --j-toast-edge: var(--juxt-space-4);

  position: fixed;
  z-index: var(--juxt-z-toast);
  width: var(--j-toast-width);
  max-width: calc(100vw - var(--j-toast-edge) * 2);
  pointer-events: none;
}
.j-toaster--top-left,
.j-toaster--top-center,
.j-toaster--top-right {
  top: max(var(--j-toast-edge), env(safe-area-inset-top));
}
.j-toaster--bottom-left,
.j-toaster--bottom-center,
.j-toaster--bottom-right {
  bottom: max(var(--j-toast-edge), env(safe-area-inset-bottom));
}
.j-toaster--top-left,
.j-toaster--bottom-left {
  left: var(--j-toast-edge);
}
.j-toaster--top-right,
.j-toaster--bottom-right {
  right: calc(var(--j-toast-edge) + var(--juxt-scrollbar-width, 0px));
}
.j-toaster--top-center,
.j-toaster--bottom-center {
  left: 50%;
  transform: translateX(-50%);
}
.j-toaster__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--juxt-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.j-toast {
  --j-toast-enter: calc(var(--juxt-motion-shift) * 3);

  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--juxt-space-2-5);
  box-sizing: border-box;
  width: 100%;
  padding: var(--juxt-space-3) var(--juxt-space-10) var(--juxt-space-3) var(--juxt-space-3);
  overflow: hidden;
  border: 1px solid var(--juxt-border);
  border-radius: var(--juxt-radius-md);
  background: var(--juxt-surface-raised);
  box-shadow: var(--juxt-shadow-md);
  color: var(--juxt-fg);
  font-family: var(--juxt-font-sans);
  pointer-events: auto;
  opacity: var(--j-toast-swipe-opacity, 1);
  transform: translateX(var(--j-toast-swipe, 0));
  outline: 2px solid transparent;
  outline-offset: 0;
  touch-action: pan-y;
  transition:
    transform var(--juxt-duration-slow) var(--juxt-ease-out),
    opacity var(--juxt-duration-normal) var(--juxt-ease-out),
    outline-color var(--juxt-duration-fast) var(--juxt-ease-out),
    outline-offset var(--juxt-duration-fast) var(--juxt-ease-out);
}
.j-toaster--top-left .j-toast,
.j-toaster--top-center .j-toast,
.j-toaster--top-right .j-toast {
  --j-toast-enter: calc(var(--juxt-motion-shift) * -3);
}
.j-toast.is-swiping {
  transition: none;
  user-select: none;
}
.j-toast:focus-visible {
  outline-color: var(--juxt-ring);
  outline-offset: 2px;
}
.j-toast__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 1rem;
  height: 1.25rem;
}
.j-toast__icon > svg {
  width: 1rem;
  height: 1rem;
}
.j-toast--success .j-toast__icon {
  color: var(--juxt-success-text);
}
.j-toast--error .j-toast__icon {
  color: var(--juxt-danger-text);
}
.j-toast--warning .j-toast__icon {
  color: var(--juxt-warning-text);
}
.j-toast--info .j-toast__icon {
  color: var(--juxt-info-text);
}
.j-toast--loading .j-toast__icon {
  color: var(--juxt-fg-muted);
}
.j-toast__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--juxt-space-0-5);
  min-width: 0;
}
.j-toast__title {
  margin: 0;
  font-size: var(--juxt-text-md);
  font-weight: var(--juxt-weight-medium);
  line-height: 1.25rem;
  letter-spacing: var(--juxt-tracking-tight);
}
.j-toast__description {
  margin: 0;
  color: var(--juxt-fg-secondary);
  font-size: var(--juxt-text-sm);
  line-height: var(--juxt-leading-normal);
}
.j-toast__actions {
  display: flex;
  gap: var(--juxt-space-2);
  margin-top: var(--juxt-space-2);
}
.j-toast__action {
  height: var(--juxt-control-xs);
  padding: 0 var(--juxt-space-2);
  border: 1px solid var(--juxt-border);
  border-radius: var(--juxt-radius-xs);
  background: var(--juxt-surface);
  color: var(--juxt-fg);
  font: inherit;
  font-size: var(--juxt-text-xs);
  font-weight: var(--juxt-weight-medium);
  cursor: pointer;
  transition-property: background-color, border-color, outline-color, outline-offset;
}
.j-toast__action:hover {
  border-color: var(--juxt-border-strong);
  background: var(--juxt-surface-hover);
}
.j-toast__close {
  position: absolute;
  top: var(--juxt-space-2-5);
  right: var(--juxt-space-2-5);
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--juxt-radius-xs);
  background: transparent;
  color: var(--juxt-fg-muted);
  cursor: pointer;
  transition-property: background-color, color, outline-color, outline-offset;
}
.j-toast__close:hover {
  background: var(--juxt-surface-hover);
  color: var(--juxt-fg);
}
.j-toast__close > svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* Remaining time, drawn as a hairline that drains toward the start. */
.j-toast__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--juxt-border-strong);
  opacity: 0.6;
  transform-origin: left;
  animation: j-toast-progress linear forwards;
}
.j-toast--success .j-toast__progress {
  background: var(--juxt-accent-border);
}
.j-toast__progress.is-paused {
  animation-play-state: paused;
}
@keyframes j-toast-progress {
from {
    transform: scaleX(1);
}
to {
    transform: scaleX(0);
}
}

/* List motion */
.j-toast-enter-from {
  opacity: 0;
  transform: translateY(var(--j-toast-enter)) scale(0.98);
}
.j-toast-leave-active {
  position: absolute;
  width: 100%;
  transition:
    opacity var(--juxt-duration-fast) var(--juxt-ease-in),
    transform var(--juxt-duration-normal) var(--juxt-ease-in);
}
.j-toast-leave-to {
  opacity: 0;
  transform: scale(0.96);
}
.j-toast-leave-to.is-swiped {
  transform: translateX(calc(var(--j-toast-width) * var(--j-swipe-sign, 1)));
}
.j-toast-leave-to.is-swiped[data-swipe-direction='-1'] {
  --j-swipe-sign: -1;
}
.j-toast-move {
  transition: transform var(--juxt-duration-slow) var(--juxt-ease-out);
}
.j-toast-icon-enter-active,
.j-toast-icon-leave-active {
  transition:
    opacity var(--juxt-duration-fast) var(--juxt-ease-out),
    transform var(--juxt-duration-fast) var(--juxt-ease-out);
}
.j-toast-icon-enter-from,
.j-toast-icon-leave-to {
  opacity: 0;
  transform: scale(0.6);
}
@media (max-width: 639px) {
.j-toaster {
    --j-toast-edge: var(--juxt-space-2);

    right: var(--j-toast-edge);
    left: var(--j-toast-edge);
    width: auto;
    max-width: none;
    transform: none;
}
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-toggle-group {
  --j-toggle-height: var(--juxt-control-md);

  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: var(--juxt-radius-md);
  background: var(--juxt-surface-sunken);
  box-shadow: inset 0 0 0 1px var(--juxt-border-subtle);
  font-family: var(--juxt-font-sans);
}
.j-toggle-group--sm {
  --j-toggle-height: var(--juxt-control-sm);
}
.j-toggle-group.is-disabled {
  opacity: 0.6;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
.j-toggle-group__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--juxt-space-1-5);
  height: var(--j-toggle-height, var(--juxt-control-md));
  padding: 0 var(--juxt-space-3);
  border: 0;
  border-radius: var(--juxt-radius-sm);
  background: transparent;
  color: var(--juxt-fg-secondary);
  font: inherit;
  font-size: var(--juxt-text-sm);
  font-weight: var(--juxt-weight-medium);
  letter-spacing: var(--juxt-tracking-tight);
  white-space: nowrap;
  cursor: pointer;
  outline: 2px solid transparent;
  outline-offset: 0;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--juxt-duration-fast) var(--juxt-ease-standard),
    color var(--juxt-duration-fast) var(--juxt-ease-standard),
    box-shadow var(--juxt-duration-fast) var(--juxt-ease-standard);
}
.j-toggle-group__item > svg {
  width: 1rem;
  height: 1rem;
}
.j-toggle-group__item:hover:not(:disabled) {
  color: var(--juxt-fg);
}
.j-toggle-group__item.is-selected {
  background: var(--juxt-surface);
  box-shadow: var(--juxt-shadow-sm);
  color: var(--juxt-fg);
}
.dark .j-toggle-group__item.is-selected,
[data-theme='dark'] .j-toggle-group__item.is-selected {
  background: var(--juxt-surface-active);
}
.j-toggle-group__item:disabled {
  color: var(--juxt-fg-disabled);
  cursor: not-allowed;
}
}

@layer theme, base, juxt, components, utilities;
@layer juxt {
/*
 * Visual hiding is handled entirely by the shared `.j-sr-only` utility in
 * base.css | this component just gives it a typed, composable wrapper so it
 * can be used as `<JVisuallyHidden as="label">…</JVisuallyHidden>`.
 */
.j-visually-hidden {
  display: block;
}
}
/*$vite$:1*/