{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "progress",
  "type": "registry:ui",
  "title": "Progress",
  "description": "Show task completion as a bar, circle, clock or background.",
  "dependencies": [
    "@base-ui/react@1.8.0",
    "lucide-react@0.561.0"
  ],
  "registryDependencies": [
    "https://ghost-ui.com/r/ghost-tokens.json",
    "https://ghost-ui.com/r/utils.json",
    "https://ghost-ui.com/r/base-styled.json",
    "https://ghost-ui.com/r/label.json",
    "https://ghost-ui.com/r/tooltip.json"
  ],
  "files": [
    {
      "path": "src/components/ui/progress.tsx",
      "type": "registry:component",
      "target": "@ui/progress.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { Progress as BaseProgress } from \"@base-ui/react/progress\";\nimport { Check } from \"lucide-react\";\n\nimport { cn } from \"@/lib/utils\";\n\nimport { styled } from \"./base-styled\";\nimport { labelPresentationClassName } from \"./internal/label-presentation\";\nimport { Tooltip, TooltipContent } from \"./tooltip\";\n\nimport \"./label.css\";\nimport { progressSector } from \"./internal/progress-sector\";\nimport \"./progress.css\";\n\nexport type ProgressCircleSize = \"sm\" | \"md\" | \"lg\";\nexport type ProgressClockShape = \"circle\" | \"rounded-square\";\n\ntype NumericValue = number | null | undefined;\n\n/** Attach the canonical tooltip to the existing element without adding a button or wrapper. */\nfunction ProgressTooltip({ children, content }: {\n  children: React.ReactElement<{ id?: string; children?: React.ReactNode }>;\n  content: React.ReactNode;\n}) {\n  const [open, setOpen] = React.useState(false);\n  const generatedId = React.useId();\n  const triggerId = children.props.id ?? generatedId;\n  return <Tooltip.Root open={open} onOpenChange={setOpen} triggerId={triggerId}>\n    <Tooltip.Trigger\n      id={triggerId}\n      delay={0}\n      closeOnClick={false}\n      onClick={() => setOpen(true)}\n      render={React.cloneElement(children, undefined, children.props.children, <TooltipContent>{content}</TooltipContent>)}\n    />\n  </Tooltip.Root>;\n}\n\nfunction finite(value: NumericValue, fallback: number) {\n  return typeof value === \"number\" && Number.isFinite(value) ? value : fallback;\n}\n\nfunction formatNumber(value: number) {\n  return Number.isInteger(value) ? String(value) : String(Number(value.toFixed(2)));\n}\n\nfunction normalizeProgress(value: NumericValue, max: NumericValue) {\n  const safeMax = Math.max(0, finite(max, 0));\n  const rawValue = finite(value, 0);\n  const safeValue = safeMax > 0 ? Math.min(safeMax, Math.max(0, rawValue)) : 0;\n  return {\n    max: safeMax,\n    value: safeValue,\n    rawValue,\n    percent: safeMax > 0 ? safeValue / safeMax : 0,\n    complete: safeMax > 0 && rawValue >= safeMax,\n    hasTarget: safeMax > 0,\n  };\n}\n\nexport interface ProgressClockProps extends React.HTMLAttributes<HTMLDivElement> {\n  /** Completed work, or null for processing without a known amount. */\n  value: number | null;\n  /** Target for measured work. A non-positive or missing target renders an empty clock. */\n  max?: number;\n  /** The task represented by the clock. */\n  label: string;\n  shape?: ProgressClockShape;\n  /** Shows the completed/target counter beside the clock. */\n  showCount?: boolean;\n}\n\nfunction ProgressClock({\n  value,\n  max = 0,\n  label,\n  shape = \"circle\",\n  showCount = true,\n  className,\n  ...props\n}: ProgressClockProps) {\n  const indeterminate = value === null;\n  const state = normalizeProgress(value, max);\n  const fillClipId = `progress-clock-fill-${React.useId()}`;\n  const valueText = indeterminate ? `${label}: in progress` : state.hasTarget\n    ? `${label}: ${formatNumber(state.value)} of ${formatNumber(state.max)}${state.complete ? \", complete\" : \"\"}`\n    : `${label}: no target, 0 of 0`;\n\n  return (\n    <ProgressTooltip content={valueText}>\n    <div\n      className={cn(\"ui-progress-clock\", className)}\n      data-shape={shape}\n      data-indeterminate={indeterminate || undefined}\n      data-complete={!indeterminate && state.complete ? \"true\" : \"false\"}\n      data-empty={!indeterminate && (!state.hasTarget || state.value === 0) ? \"true\" : \"false\"}\n      tabIndex={0}\n      {...props}\n    >\n      <div\n        className=\"ui-progress-clock__meter\"\n        role=\"progressbar\"\n        aria-label={label}\n        aria-valuemin={0}\n        aria-valuemax={state.hasTarget ? state.max : undefined}\n        aria-valuenow={!indeterminate && state.hasTarget ? state.value : undefined}\n        aria-valuetext={valueText}\n      >\n        <svg className=\"ui-progress-clock__graphic\" viewBox=\"0 0 18 18\" aria-hidden=\"true\" focusable=\"false\">\n          <defs><clipPath id={fillClipId}>{shape === \"rounded-square\"\n            ? <rect x=\"3\" y=\"3\" width=\"12\" height=\"12\" rx=\"2\" />\n            : <circle cx=\"9\" cy=\"9\" r=\"6\" />}</clipPath></defs>\n          {shape === \"rounded-square\" ? <>\n            <rect className=\"ui-progress-clock__outline\" x=\"0.5\" y=\"0.5\" width=\"17\" height=\"17\" rx=\"4.5\" />\n            <rect className=\"ui-progress-clock__inner\" x=\"3\" y=\"3\" width=\"12\" height=\"12\" rx=\"2\" />\n            {state.complete ? <rect className=\"ui-progress-clock__square-fill\" x=\"3\" y=\"3\" width=\"12\" height=\"12\" rx=\"2\" /> : state.percent > 0 ? <path className=\"ui-progress-clock__square-fill ui-progress-clock__sector\" d={progressSector(state.percent, 9)} clipPath={`url(#${fillClipId})`} /> : null}\n          </> : <>\n            <circle className=\"ui-progress-clock__outline\" cx=\"9\" cy=\"9\" r=\"8.5\" />\n            <circle className=\"ui-progress-clock__inner\" cx=\"9\" cy=\"9\" r=\"6\" />\n            {state.complete ? <circle className=\"ui-progress-clock__circle-fill\" cx=\"9\" cy=\"9\" r=\"6\" /> : state.percent > 0 ? <path className=\"ui-progress-clock__circle-fill ui-progress-clock__sector\" d={progressSector(state.percent)} clipPath={`url(#${fillClipId})`} /> : null}\n          </>}\n          {indeterminate ? <g clipPath={`url(#${fillClipId})`}>\n            <path className=\"ui-progress-clock__circle-fill ui-progress-clock__sector ui-progress-processing__rotor\" d={progressSector(0.28, shape === \"rounded-square\" ? 9 : 6)} />\n          </g> : null}\n          {!indeterminate && state.complete && <Check className=\"ui-progress-clock__check\" x={4} y={4} width={10} height={10} strokeWidth={2} aria-hidden=\"true\" />}\n        </svg>\n      </div>\n      {showCount && !indeterminate ? <span className=\"ui-progress-clock__count\" aria-hidden=\"true\">{formatNumber(state.value)} / {formatNumber(state.max)}</span> : null}\n    </div>\n    </ProgressTooltip>\n  );\n}\n\nexport interface ProgressCircleProps extends React.HTMLAttributes<HTMLDivElement> {\n  /** Completed work, or null for processing without a known amount. */\n  value: number | null;\n  /** Target for measured work. A non-positive target renders an empty ring. */\n  max?: number;\n  /** Accessible name for the percentage display. */\n  label?: string;\n  size?: ProgressCircleSize;\n  /** Shows the rounded percentage in the center of the ring. */\n  showValue?: boolean;\n}\n\nfunction ProgressCircle({\n  value,\n  max = 100,\n  label = \"Progress\",\n  size = \"md\",\n  showValue = true,\n  className,\n  ...props\n}: ProgressCircleProps) {\n  const indeterminate = value === null;\n  const state = normalizeProgress(value, max);\n  const percentage = Math.round(state.percent * 100);\n  const valueText = indeterminate ? `${label}: in progress` : state.hasTarget\n    ? `${label}: ${formatNumber(state.value)} of ${formatNumber(state.max)}, ${percentage}%`\n    : `${label}: no target, 0%`;\n  return (\n    <ProgressTooltip content={valueText}>\n    <div className={cn(\"ui-progress-circle\", `ui-progress-circle--${size}`, className)} data-indeterminate={indeterminate || undefined} tabIndex={0} {...props}>\n      <div\n        className=\"ui-progress-circle__meter\"\n        role=\"progressbar\"\n        aria-label={label}\n        aria-valuemin={0}\n        aria-valuemax={state.hasTarget ? state.max : undefined}\n        aria-valuenow={!indeterminate && state.hasTarget ? state.value : undefined}\n        aria-valuetext={valueText}\n      >\n        <svg className=\"ui-progress-circle__graphic\" viewBox=\"0 0 24 24\" aria-hidden=\"true\" focusable=\"false\">\n          <circle className=\"ui-progress-circle__track\" cx=\"12\" cy=\"12\" r=\"8\" pathLength=\"100\" />\n          {indeterminate ? <circle className=\"ui-progress-circle__indicator ui-progress-processing__rotor\" cx=\"12\" cy=\"12\" r=\"8\" pathLength=\"100\" strokeDasharray=\"28 72\" /> : <circle\n            className=\"ui-progress-circle__indicator\"\n            cx=\"12\"\n            cy=\"12\"\n            r=\"8\"\n            pathLength=\"100\"\n            strokeDasharray=\"100\"\n            strokeDashoffset={100 - state.percent * 100}\n          />}\n        </svg>\n      </div>\n      {showValue && !indeterminate ? <span className=\"ui-progress-circle__value\" aria-hidden=\"true\">{percentage}%</span> : null}\n    </div>\n    </ProgressTooltip>\n  );\n}\n\nexport type ProgressBackgroundVariant = \"card\" | \"tab\";\n\nexport interface ProgressBackgroundProps extends React.HTMLAttributes<HTMLDivElement> {\n  /** A determinate surface fill or a timed tab fill. */\n  variant?: ProgressBackgroundVariant;\n  /** Null represents unknown work without a numeric percentage. */\n  value?: number | null;\n  max?: number;\n  label?: string;\n  /** Starts or restarts the timed fill when it becomes true. */\n  active?: boolean;\n  /** Duration of an active timed fill in milliseconds. */\n  duration?: number;\n  /** Pauses a timed fill without losing elapsed time. */\n  paused?: boolean;\n  /** Runs when an active timed fill reaches its end, including reduced motion. */\n  onComplete?: () => void;\n  children?: React.ReactNode;\n}\n\nexport interface ProgressTimerOptions {\n  active?: boolean;\n  duration?: number;\n  paused?: boolean;\n  /** Restart elapsed time when the caller changes the current item's identity. */\n  resetKey?: unknown;\n  onComplete?: () => void;\n}\n\n/** Shared elapsed clock for timed surfaces. Selection and pause policy stay caller-owned. */\nexport function useProgressTimer({ active = true, duration = 5000, paused = false, resetKey, onComplete }: ProgressTimerOptions = {}) {\n  const durationMs = Math.max(0, finite(duration, 0));\n  const [percent, setPercent] = React.useState(0);\n  const elapsedRef = React.useRef(0);\n  const activeRef = React.useRef(false);\n  const previousRef = React.useRef({ durationMs, resetKey });\n  const completedRef = React.useRef(false);\n  const onCompleteRef = React.useRef(onComplete);\n\n  React.useEffect(() => { onCompleteRef.current = onComplete; }, [onComplete]);\n  React.useEffect(() => {\n    const previous = previousRef.current;\n    if (!active || !activeRef.current || previous.durationMs !== durationMs || !Object.is(previous.resetKey, resetKey)) {\n      elapsedRef.current = 0;\n      completedRef.current = false;\n      setPercent(0);\n    }\n    previousRef.current = { durationMs, resetKey };\n    activeRef.current = active;\n    if (!active || paused || completedRef.current) return;\n\n    let frame: number | undefined;\n    let timer: ReturnType<typeof setTimeout> | undefined;\n    const startedAt = Date.now();\n    const elapsedAtStart = elapsedRef.current;\n    const cancelFrame = () => { if (frame !== undefined) cancelAnimationFrame(frame); };\n    const finish = () => {\n      if (completedRef.current) return;\n      completedRef.current = true;\n      elapsedRef.current = durationMs;\n      setPercent(100);\n      if (timer !== undefined) clearTimeout(timer);\n      cancelFrame();\n      onCompleteRef.current?.();\n    };\n    const tick = () => {\n      elapsedRef.current = Math.min(durationMs, elapsedAtStart + Math.max(0, Date.now() - startedAt));\n      if (elapsedRef.current >= durationMs) finish();\n      else {\n        setPercent(elapsedRef.current / durationMs * 100);\n        frame = requestAnimationFrame(tick);\n      }\n    };\n    const remaining = Math.max(0, durationMs - elapsedAtStart);\n    if (remaining === 0) finish();\n    else {\n      timer = setTimeout(finish, remaining);\n      if (typeof requestAnimationFrame === \"function\") frame = requestAnimationFrame(tick);\n    }\n    return () => {\n      if (timer !== undefined) clearTimeout(timer);\n      cancelFrame();\n      if (!completedRef.current) elapsedRef.current = Math.min(durationMs, elapsedAtStart + Math.max(0, Date.now() - startedAt));\n    };\n  }, [active, durationMs, paused, resetKey]);\n  return percent;\n}\n\nfunction ProgressBackground({\n  variant = \"card\",\n  value = 0,\n  max = 100,\n  label = \"Progress\",\n  active = false,\n  duration = 5000,\n  paused = false,\n  onComplete,\n  children,\n  className,\n  style,\n  ...props\n}: ProgressBackgroundProps) {\n  const indeterminate = variant === \"card\" && value === null;\n  const state = normalizeProgress(value ?? undefined, max);\n  const overflow = state.hasTarget && state.rawValue > state.max;\n  const timedPercent = useProgressTimer({ active: variant === \"tab\" && active, duration, paused, onComplete });\n\n  const valueText = indeterminate ? `${label}: in progress` : !state.hasTarget\n    ? `${label}: no target, 0 of 0`\n    : overflow\n      ? `${formatNumber(state.rawValue)} of ${formatNumber(state.max)}, over target`\n      : state.complete\n        ? `${formatNumber(state.max)} of ${formatNumber(state.max)}, complete`\n        : `${formatNumber(state.value)} of ${formatNumber(state.max)}`;\n\n  return (\n    <div\n      className={cn(\"ui-progress-background\", className)}\n      data-variant={variant}\n      data-overlay={variant === \"card\" && !children ? \"true\" : undefined}\n      data-complete={!indeterminate && state.complete ? \"true\" : undefined}\n      data-empty={!indeterminate && !state.hasTarget && variant === \"card\" ? \"true\" : undefined}\n      data-zero={!indeterminate && state.percent === 0 ? \"true\" : undefined}\n      data-overflow={!indeterminate && overflow ? \"true\" : undefined}\n      data-indeterminate={indeterminate || undefined}\n      data-active={active ? \"true\" : undefined}\n      data-paused={paused ? \"true\" : undefined}\n      style={{\n        ...style,\n        \"--ui-progress-background-scale\": variant === \"tab\" ? timedPercent / 100 : state.percent,\n      } as React.CSSProperties}\n      {...props}\n    >\n      {variant === \"card\" ? (\n        <span className=\"ui-progress-background__fill\" aria-hidden=\"true\" />\n      ) : active ? (\n        <span className=\"ui-progress-background__fill\" aria-hidden=\"true\" />\n      ) : null}\n      {children ? <div className=\"ui-progress-background__content\">{children}</div> : null}\n      {variant === \"card\" ? (\n        <span\n          className=\"ui-sr-only ui-progress-background__sr-only\"\n          role=\"progressbar\"\n          aria-label={label}\n          aria-valuemin={0}\n          aria-valuemax={state.hasTarget ? state.max : undefined}\n          aria-valuenow={!indeterminate && state.hasTarget ? state.value : undefined}\n          aria-valuetext={valueText}\n        />\n      ) : null}\n    </div>\n  );\n}\n\nconst BaseProgressRoot = styled(BaseProgress.Root, \"ui-progress-root\");\nexport interface ProgressRootProps extends React.ComponentPropsWithoutRef<typeof BaseProgress.Root> {\n  /** Place the value beside the label (default), or to the right of the track. */\n  valuePlacement?: \"label\" | \"inline\";\n}\nconst ProgressRoot = React.forwardRef<HTMLDivElement, ProgressRootProps>(function ProgressRoot({ valuePlacement = \"label\", children, ...props }, ref) {\n  return <ProgressTooltip content={<BaseProgress.Value aria-hidden={false}>{(formattedValue, value) => props[\"aria-valuetext\"] ?? props.getAriaValueText?.(formattedValue ?? \"\", props.value) ?? (value === null || !Number.isFinite(value) ? \"In progress\" : formattedValue)}</BaseProgress.Value>}>\n    <BaseProgressRoot tabIndex={0} {...props} ref={ref} data-value-placement={valuePlacement}>{children}</BaseProgressRoot>\n  </ProgressTooltip>;\n});\nconst ProgressLabel = styled(BaseProgress.Label, `ui-progress-label ${labelPresentationClassName(undefined)}`);\nconst ProgressValue = styled(BaseProgress.Value, \"ui-progress-value ui-hint\");\nconst ProgressTrack = styled(BaseProgress.Track, \"ui-progress-track ui-track\");\nconst ProgressIndicator = styled(BaseProgress.Indicator, \"ui-progress-indicator ui-indicator\");\n\n/**\n * Base UI progress semantics plus reusable task progress visualizations.\n * The Root/Label/Value/Track/Indicator parts remain compatible with existing consumers.\n */\nexport const Progress = {\n  ...BaseProgress,\n  Root: ProgressRoot,\n  Label: ProgressLabel,\n  Value: ProgressValue,\n  Track: ProgressTrack,\n  Indicator: ProgressIndicator,\n  Clock: ProgressClock,\n  Circle: ProgressCircle,\n  Background: ProgressBackground,\n};\n"
    },
    {
      "path": "src/components/ui/internal/progress-sector.ts",
      "type": "registry:component",
      "target": "@ui/internal/progress-sector.ts",
      "content": "export function progressSector(end: number, radius = 6, start = 0) {\n  if (end <= start) return \"\";\n  const point = (fraction: number) => {\n    const angle = fraction * Math.PI * 2 - Math.PI / 2;\n    return [9 + radius * Math.cos(angle), 9 + radius * Math.sin(angle)];\n  };\n  const [x, y] = point(end);\n  const [startX, startY] = start === 0 ? [9, 9 - radius] : point(start);\n  return `M 9 9 L ${startX} ${startY} A ${radius} ${radius} 0 ${end - start > 0.5 ? 1 : 0} 1 ${x} ${y} Z`;\n}\n"
    },
    {
      "path": "src/components/ui/progress.css",
      "type": "registry:file",
      "target": "@ui/progress.css",
      "content": ".ui-progress-root,\n.ui-progress-clock,\n.ui-progress-circle,\n.ui-progress-background {\n  color: var(--foreground);\n  font-family: var(--font-sans);\n}\n\n.ui-progress-root {\n  display: grid;\n  min-width: 0;\n  gap: var(--gap-heading-helper, var(--space-2));\n  grid-template: \"track\" auto / minmax(0, 1fr);\n  align-items: center;\n}\n.ui-progress-root > .ui-progress-label { grid-area: label; }\n.ui-progress-root > .ui-progress-value { grid-area: value; justify-self: end; }\n.ui-progress-root > .ui-progress-track { grid-area: track; }\n.ui-progress-root:has(> .ui-progress-label) { grid-template: \"label label\" auto \"track track\" auto / minmax(0, 1fr) auto; }\n.ui-progress-root:has(> .ui-progress-value) { grid-template: \"label value\" auto \"track track\" auto / minmax(0, 1fr) auto; }\n.ui-progress-root[data-value-placement=\"inline\"]:has(> .ui-progress-value) { grid-template: \"track value\" auto / minmax(0, 1fr) auto; }\n.ui-progress-root[data-value-placement=\"inline\"]:has(> .ui-progress-label):has(> .ui-progress-value) { grid-template: \"label label\" auto \"track value\" auto / minmax(0, 1fr) auto; }\n.ui-progress-value { color: var(--muted-foreground); font-size: var(--font-size-caption); line-height: var(--leading-copy); font-variant-numeric: tabular-nums; }\n.ui-progress-track {\n  position: relative;\n  display: block;\n  width: 100%;\n  height: var(--space-2);\n  overflow: hidden;\n  border-radius: calc(var(--radius-sm) / 2);\n  background: var(--secondary);\n}\n.ui-progress-indicator {\n  display: block;\n  height: 100%;\n  border-radius: inherit;\n  background: var(--primary);\n  transition: width var(--motion-short) var(--motion-ease);\n}\n.ui-progress-root[data-indeterminate] .ui-progress-indicator {\n  position: relative;\n  width: 100%;\n  overflow: hidden;\n  background: var(--secondary-hover);\n  transition: none;\n}\n\n.ui-progress-clock,\n.ui-progress-circle {\n  display: inline-flex;\n  align-items: center;\n  min-width: 0;\n}\n.ui-progress-clock { gap: var(--space-2); }\n.ui-progress-clock__meter { display: grid; place-items: center; position: relative; flex: 0 0 18px; width: 18px; height: 18px; }\n.ui-progress-clock__graphic { grid-area: 1 / 1; display: block; width: 100%; height: 100%; overflow: visible; }\n.ui-progress-clock__outline { fill: none; stroke: var(--input); stroke-width: 1; }\n.ui-progress-clock[data-empty=\"true\"] .ui-progress-clock__outline { stroke-dasharray: 0.01 2.5; stroke-linecap: round; }\n.ui-progress-clock[data-complete=\"true\"] .ui-progress-clock__outline { stroke: var(--palette-500); }\n.ui-progress-clock__inner { fill: var(--choice-fill); }\n.ui-progress-clock[data-complete=\"false\"]:hover .ui-progress-clock__inner { fill: var(--ui-choice-hover-fill, var(--secondary-hover)); }\n.ui-progress-clock__circle-fill,\n.ui-progress-clock__square-fill { fill: var(--palette-500); }\n.ui-progress-clock__sector { stroke: var(--palette-500); stroke-width: 0.75; stroke-linejoin: round; }\n.ui-progress-clock__check { color: var(--primary-foreground); }\n.ui-progress-clock__count { color: var(--muted-foreground); font-size: var(--font-size-base); line-height: var(--leading-tight); font-variant-numeric: tabular-nums; white-space: nowrap; }\n\n.ui-progress-circle { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }\n.ui-progress-circle--sm { --ui-progress-visual-size: var(--space-5); }\n.ui-progress-circle--md { --ui-progress-visual-size: var(--space-6); }\n.ui-progress-circle--lg { --ui-progress-visual-size: var(--space-8); }\n.ui-progress-circle__meter { position: relative; flex: 0 0 var(--ui-progress-visual-size); width: var(--ui-progress-visual-size); height: var(--ui-progress-visual-size); }\n.ui-progress-circle__graphic { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }\n.ui-progress-circle__track,\n.ui-progress-circle__indicator { fill: none; stroke-width: 1.5; }\n.ui-progress-circle__track { stroke: var(--border); }\n.ui-progress-circle__indicator { stroke: var(--primary); transition: stroke-dashoffset var(--motion-short) var(--motion-ease); }\n.ui-progress-circle__value { color: var(--foreground); font-size: var(--font-size-base); line-height: var(--leading-copy); font-variant-numeric: tabular-nums; white-space: nowrap; }\n\n.ui-progress-background { position: relative; min-width: 0; border-radius: inherit; }\n.ui-progress-background[data-variant=\"card\"] { overflow: hidden; }\n.ui-progress-background[data-overlay=\"true\"] { position: absolute; inset: 0; z-index: -1; pointer-events: none; }\n.ui-progress-background__fill { position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: calc(var(--ui-progress-background-scale, 0) * 100%); pointer-events: none; }\n.ui-progress-background[data-variant=\"card\"] .ui-progress-background__fill { --ui-progress-background-color: var(--primary); z-index: 0; box-sizing: border-box; border-inline-end: 1px solid color-mix(in srgb, var(--ui-progress-background-color) 50%, transparent); background: linear-gradient(to right, color-mix(in srgb, var(--ui-progress-background-color) 4%, transparent), color-mix(in srgb, var(--ui-progress-background-color) 16%, transparent)); transition: inline-size var(--ui-progress-background-duration, var(--motion-short)) linear; }\n.ui-progress-background[data-variant=\"card\"][data-overflow=\"true\"] .ui-progress-background__fill { --ui-progress-background-color: var(--destructive); }\n.ui-progress-background[data-variant=\"card\"]:dir(rtl) .ui-progress-background__fill { background-image: linear-gradient(to left, color-mix(in srgb, var(--ui-progress-background-color) 4%, transparent), color-mix(in srgb, var(--ui-progress-background-color) 16%, transparent)); }\n.ui-progress-background[data-variant=\"card\"][data-zero=\"true\"] .ui-progress-background__fill { display: none; }\n.ui-progress-background[data-variant=\"card\"][data-empty=\"true\"] .ui-progress-background__fill { display: none; }\n.ui-progress-background[data-variant=\"card\"][data-indeterminate] .ui-progress-background__fill { inline-size: 100%; border-inline-end: 0; background: color-mix(in srgb, var(--primary) 4%, transparent); transition: none; --ui-progress-processing-color: color-mix(in srgb, var(--primary) 16%, transparent); }\n.ui-progress-background[data-variant=\"tab\"] { position: absolute; inset: 0; display: block; overflow: hidden; pointer-events: none; }\n.ui-progress-background[data-variant=\"tab\"] .ui-progress-background__fill { z-index: 0; background: color-mix(in srgb, var(--primary) 14%, transparent); }\n.ui-progress-background__content { position: relative; z-index: 1; min-width: 0; }\n\n.ui-progress-root[data-indeterminate] .ui-progress-indicator::after,\n.ui-progress-background[data-variant=\"card\"][data-indeterminate] .ui-progress-background__fill::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background: linear-gradient(90deg, transparent, var(--ui-progress-processing-color, color-mix(in srgb, var(--primary) 65%, transparent)), transparent);\n}\n.ui-progress-root[data-indeterminate] .ui-progress-indicator::after,\n.ui-progress-background[data-variant=\"card\"][data-indeterminate] .ui-progress-background__fill::after {\n  transform-box: fill-box;\n  animation: ui-progress-processing var(--ui-progress-processing-duration, 1.8s) linear infinite;\n}\n@keyframes ui-progress-processing { from { transform: translateX(-100%); } to { transform: translateX(100%); } }\n.ui-progress-processing__rotor { transform-box: view-box; transform-origin: center; animation: ui-progress-processing-rotate var(--ui-progress-processing-duration, 1.8s) linear infinite; }\n@keyframes ui-progress-processing-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }\n@media (prefers-reduced-motion: reduce) {\n  .ui-progress-indicator,\n  .ui-progress-circle__indicator,\n  .ui-progress-background[data-variant=\"card\"] .ui-progress-background__fill { transition: none; }\n  .ui-progress-background[data-variant=\"tab\"] .ui-progress-background__fill { inline-size: 0; }\n}\n@media (prefers-reduced-motion: reduce), (forced-colors: active) {\n  .ui-progress-processing__rotor,\n  .ui-progress-root[data-indeterminate] .ui-progress-indicator::after,\n  .ui-progress-background[data-variant=\"card\"][data-indeterminate] .ui-progress-background__fill::after { animation: none; transform: none; }\n}\n@media (forced-colors: active) {\n  /* OS accessibility colors stay local to forced-colors mode. */\n  .ui-progress-track, .ui-progress-circle, .ui-progress-clock, .ui-progress-indicator { --ui-progress-system-track: Canvas; --ui-progress-system-fill: Highlight; }\n  .ui-progress-track,\n  .ui-progress-circle__track,\n  .ui-progress-clock__outline { background: var(--ui-progress-system-track); stroke: CanvasText; }\n  .ui-progress-indicator,\n  .ui-progress-circle__indicator { background: var(--ui-progress-system-fill); stroke: var(--ui-progress-system-fill); fill: var(--ui-progress-system-fill); }\n  .ui-progress-circle[data-indeterminate] .ui-progress-processing__rotor { fill: none; }\n  .ui-progress-clock[data-complete] .ui-progress-clock__outline { stroke: CanvasText; }\n  .ui-progress-clock[data-complete] .ui-progress-clock__inner,\n  .ui-progress-clock[data-complete]:hover .ui-progress-clock__inner { fill: Canvas; }\n  .ui-progress-clock__circle-fill,\n  .ui-progress-clock__square-fill { fill: Highlight; }\n  .ui-progress-clock__sector { stroke: Highlight; }\n  .ui-progress-clock__check { color: HighlightText; }\n  .ui-progress-root[data-indeterminate] .ui-progress-indicator { background: Canvas; }\n  .ui-progress-root[data-indeterminate] .ui-progress-indicator::after,\n  .ui-progress-background[data-variant=\"card\"][data-indeterminate] .ui-progress-background__fill::after { background: Highlight; opacity: 0.5; inline-size: 35%; inset-inline-start: 32.5%; }\n}\n"
    }
  ]
}
